class BaseLoop: checking for the transmitted telegram type 'BC' improved.
This commit is contained in:
+3
-1
@@ -161,7 +161,9 @@ std::string BaseLoop::decodeMessage(const std::string& data)
|
|||||||
|
|
||||||
if (busCommand->getResult().c_str()[0] != '-') {
|
if (busCommand->getResult().c_str()[0] != '-') {
|
||||||
// decode result
|
// 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";
|
result << "done";
|
||||||
else
|
else
|
||||||
result << "error";
|
result << "error";
|
||||||
|
|||||||
Reference in New Issue
Block a user