SML parser: remove commented-out code
the comparison is part of the original library code, but the compiler rightfully complains that the comparison byte <= 0xFF is always true, since byte is uint8_t. the comparison was commented out, and is now removed.
This commit is contained in:
parent
1afa9a6d90
commit
7f724ce561
@ -171,7 +171,7 @@ void checkMagicByte(unsigned char &byte)
|
||||
// Datatype Octet String
|
||||
setState(SML_HDATA, (byte & 0x0F) << 4);
|
||||
}
|
||||
else if (byte >= 0xF0 /*&& byte <= 0xFF*/) {
|
||||
else if (byte >= 0xF0) {
|
||||
/* Datatype List of ...*/
|
||||
setState(SML_LISTEXTENDED, (byte & 0x0F) << 4);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user