Fixed build when MPU_SENSOR is disabled

This commit is contained in:
EmanuelFeru 2020-06-24 08:46:47 +02:00
parent 2e0eebb47a
commit 437ed266ac

View File

@ -208,8 +208,10 @@ void usart_process_debug(uint8_t *userCommand, uint32_t len)
{
for (; len > 0; len--, userCommand++) {
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);
#endif
}
}
}