fixed empty stored value for messages with value in master data

This commit is contained in:
john30
2014-12-31 09:18:44 +01:00
parent 2253060b8a
commit b717a0561b
+1 -3
View File
@@ -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 {