code style

This commit is contained in:
john30
2014-10-31 20:33:51 +01:00
parent 45ce9f180a
commit 2525c4fe00
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -358,10 +358,10 @@ int Bus::recvSlaveDataAndCRC(SymbolString& result)
byte_recv = recvByte();
retval = result.push_back(byte_recv, true, updateCrc);
if (retval<0)
if (retval < 0)
return retval;
if (retval==RESULT_IN_ESC)
if (retval == RESULT_IN_ESC)
needed++;
else if (result.size() == 1) { // NN received
NN = result[0];
@@ -374,7 +374,7 @@ int Bus::recvSlaveDataAndCRC(SymbolString& result)
}
}
if (retval==RESULT_IN_ESC)
if (retval == RESULT_IN_ESC)
return RESULT_ERR_ESC;
if (updateCrc || crc_calc != result[result.size()-1])
+1 -1
View File
@@ -86,4 +86,4 @@ private:
} //namespace
#endif // LIBEBUS_BUS_HPP_
#endif // LIBEBUS_BUS_H_