unsigned char for Msb/Lsb
This commit is contained in:
parent
ea806d5d9a
commit
cdd905fb5d
|
@ -215,7 +215,7 @@ void readCommand() {
|
|||
}
|
||||
|
||||
// read a hex value
|
||||
int Msb = c;
|
||||
uint8_t Msb = c;
|
||||
if (!isHexadecimalDigit(Msb)) {
|
||||
inMessage = false;
|
||||
break;
|
||||
|
@ -223,7 +223,7 @@ void readCommand() {
|
|||
while(!Serial.available()) { // Lsb isn't in buffer yer
|
||||
delay(3); // todo: make this less bad
|
||||
}
|
||||
int Lsb = Serial.read();
|
||||
uint8_t Lsb = Serial.read();
|
||||
if (!isHexadecimalDigit(Lsb)) {
|
||||
inMessage = false;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue