1
0
Fork 0

unsigned char for Msb/Lsb

This commit is contained in:
Kevin Matz 2019-07-30 13:24:10 -04:00
parent ea806d5d9a
commit cdd905fb5d
1 changed files with 2 additions and 2 deletions

View File

@ -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;