Skip to content

Commit

Permalink
Fixed build when MPU_SENSOR is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
EFeru committed Jun 24, 2020
1 parent 19aee79 commit c2b8784
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Src/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,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
}
}
}
Expand Down

0 comments on commit c2b8784

Please sign in to comment.