Fix Cppcheck warnings (#684)

This commit is contained in:
Olivier
2016-12-10 12:46:52 -08:00
committed by Bruce Lacey
parent 8e1ef13804
commit 37881d56ba
6 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -60,8 +60,8 @@ bool protocolParse(MyMessage &message, char *inputString)
case 5: // Variable value
if (command == C_STREAM) {
blen = 0;
uint8_t val;
while (*str) {
uint8_t val;
val = protocolH2i(*str++) << 4;
val += protocolH2i(*str++);
bvalue[blen] = val;