neither update last found timestamp nor empty last found value if decoding failed, added decode() for combined master/slave decoding

This commit is contained in:
john30
2014-12-31 09:16:33 +01:00
parent a7d404ee75
commit 2253060b8a
3 changed files with 43 additions and 7 deletions
+1 -3
View File
@@ -151,9 +151,7 @@ int main()
SymbolString writeMstr;
if (message->isPassive() == true) {
ostringstream output;
result = message->decode(pt_masterData, mstr, output);
if (result == RESULT_OK)
result = message->decode(pt_slaveData, sstr, output, output.str().empty() == false);
result = message->decode(mstr, sstr, output);
if (result != RESULT_OK) {
cout << " \"" << inputStr << "\": decode error: "
<< getResultCode(result) << endl;