return "done broadcast" after successful write of broadcast message

This commit is contained in:
john30
2015-10-31 06:53:06 +01:00
parent 7d8966400c
commit 3f397c933a
+3 -1
View File
@@ -517,7 +517,9 @@ string MainLoop::executeWrite(vector<string> &args)
else
logError(lf_main, "hex write %s %s cache update: %s", message->getCircuit().c_str(), message->getName().c_str(), getResultCode(ret));
}
if (master[1] == BROADCAST || isMaster(master[1]))
if (master[1] == BROADCAST)
return "done broadcast";
if (isMaster(master[1]))
return getResultCode(RESULT_OK);
return slave.getDataStr();
}