1
0
Fork 0

convert Msb/Lsb from ascii to decimal

This commit is contained in:
Kevin Matz 2019-07-30 13:24:39 -04:00
parent cdd905fb5d
commit 6300048196
1 changed files with 3 additions and 0 deletions

View File

@ -220,6 +220,8 @@ void readCommand() {
inMessage = false;
break;
}
Msb = nibble2number(Msb);
while(!Serial.available()) { // Lsb isn't in buffer yer
delay(3); // todo: make this less bad
}
@ -228,6 +230,7 @@ void readCommand() {
inMessage = false;
break;
}
Lsb = nibble2number(Lsb);
// move the axis
uint8_t v = ( Msb << 4 ) | (Lsb);