Got rid of excess logging. Added logging of received data from subcommand
This commit is contained in:
@@ -27,6 +27,7 @@ void TemperatureThread::Run()
|
||||
if (output == nullptr) return;
|
||||
string value = Read(output);
|
||||
pclose(output);
|
||||
mainlog.LogString("TemperatureThread: received from command: " + value);
|
||||
temperature = atof(value.c_str());
|
||||
LockMutex(register_mutex);
|
||||
registers[REGISTER_CUR_TEMP] = (int)(temperature * 100);
|
||||
|
||||
Reference in New Issue
Block a user