polling: only save correct results.

This commit is contained in:
Roland Jax
2014-10-10 09:04:52 +02:00
parent 78f6b9a70e
commit cd683660dc
+4 -1
View File
@@ -167,7 +167,10 @@ void* EBusLoop::run()
} else {
retries = 0;
if (pollCommandActive == true) {
m_commands->storePolData(busCommand->getResult().c_str());
// only save correct results
if (busCommand->getResult().c_str()[0] != '-')
m_commands->storePolData(busCommand->getResult().c_str());
delete busCommand;
pollCommandActive = false;
} else {