also return "donw broadcast" for non-hex write of a message

This commit is contained in:
john30
2015-11-08 15:22:27 +01:00
parent 549f8fd910
commit 52f817407d
+2
View File
@@ -623,6 +623,8 @@ string MainLoop::executeWrite(vector<string> &args)
ostringstream result;
if (master[1] == BROADCAST || isMaster(master[1])) {
logInfo(lf_main, "write %s %s: %s", message->getCircuit().c_str(), message->getName().c_str(), getResultCode(ret));
if (master[1] == BROADCAST)
return "done broadcast";
return getResultCode(RESULT_OK);
}