convert Msb/Lsb from ascii to decimal
This commit is contained in:
parent
cdd905fb5d
commit
6300048196
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue