class BaseLoop: checking for the transmitted telegram type 'BC' improved.

This commit is contained in:
Roland Jax
2014-09-27 21:01:27 +02:00
parent 1e9edd3e71
commit 9092e290c2
+3 -1
View File
@@ -161,7 +161,9 @@ std::string BaseLoop::decodeMessage(const std::string& data)
if (busCommand->getResult().c_str()[0] != '-') {
// decode result
if (busCommand->getResult().substr(busCommand->getResult().length()-8) == "00000000")
if (strcasecmp(type.c_str(), "BC") == 0)
result << "done";
else if (busCommand->getResult().substr(busCommand->getResult().length()-8) == "00000000")
result << "done";
else
result << "error";