From b717a0561b855154c3999184a24fb3993259c0d6 Mon Sep 17 00:00:00 2001 From: john30 Date: Wed, 31 Dec 2014 09:18:44 +0100 Subject: [PATCH] fixed empty stored value for messages with value in master data --- src/ebusd/bushandler.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ebusd/bushandler.cpp b/src/ebusd/bushandler.cpp index 6c115dbb..920f2440 100644 --- a/src/ebusd/bushandler.cpp +++ b/src/ebusd/bushandler.cpp @@ -668,9 +668,7 @@ void BusHandler::receiveCompleted() string clazz = message->getClass(); string name = message->getName(); ostringstream output; - result_t result = message->decode(pt_masterData, m_command, output); - if (result == RESULT_OK && dstAddress != BROADCAST && master == false) - result = message->decode(pt_slaveData, m_response, output, output.str().empty() == false); + result_t result = message->decode(m_command, m_response, output); if (result != RESULT_OK) L.log(upd, error, "unable to parse %s %s from %s / %s: %s", clazz.c_str(), name.c_str(), m_command.getDataStr().c_str(), m_response.getDataStr().c_str(), getResultCode(result)); else {