Got rid of excess logging. Added logging of received data from subcommand

This commit is contained in:
ftc
2021-01-04 11:22:29 +03:00
parent 07afde2125
commit 2da60c22e9
2 changed files with 1 additions and 5 deletions
+1
View File
@@ -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);