From 9092e290c20184460423c383f8833fb3aae3450c Mon Sep 17 00:00:00 2001 From: Roland Jax Date: Sat, 27 Sep 2014 21:01:27 +0200 Subject: [PATCH] class BaseLoop: checking for the transmitted telegram type 'BC' improved. --- src/baseloop.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/baseloop.cpp b/src/baseloop.cpp index b9c8db00..bcb72bb1 100644 --- a/src/baseloop.cpp +++ b/src/baseloop.cpp @@ -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";