mirror of
https://github.com/EFeru/hoverboard-sideboard-hack-GD.git
synced 2025-07-27 09:39:33 +00:00
Fixed build when MPU_SENSOR is disabled
This commit is contained in:
parent
19aee79e57
commit
c2b8784298
@ -233,7 +233,9 @@ void usart_process_debug(uint8_t *userCommand, uint32_t len)
|
|||||||
for (; len > 0; len--, userCommand++) {
|
for (; len > 0; len--, userCommand++) {
|
||||||
if (*userCommand != '\n' && *userCommand != '\r') { // Do not accept 'new line' and 'carriage return' commands
|
if (*userCommand != '\n' && *userCommand != '\r') { // Do not accept 'new line' and 'carriage return' commands
|
||||||
log_i("Command = %c\n", *userCommand);
|
log_i("Command = %c\n", *userCommand);
|
||||||
|
#ifdef MPU_SENSOR_ENABLE
|
||||||
mpu_handle_input(*userCommand);
|
mpu_handle_input(*userCommand);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user