fixed issue in shell with MotOffset_Get crashing MCU

main
Jonas Arnold 4 years ago
parent 1d8ed622d8
commit 27e9306d1b
  1. 3
      ADIS_tinyK22_SplitFlap/source/shell.c

@ -54,7 +54,8 @@ static uint8_t ParseCommand(const uint8_t *cmd, bool *handled, McuShell_ConstStd
cmd++;
if(McuUtility_xatoi(&cmd, &hwId) == ERR_OK){
// validate param
if(MotOffset_Get(hwId, NULL) != ERR_OK){
int32_t offset = 0;
if(MotOffset_Get(hwId, &offset) != ERR_OK){
return ERR_FAILED;
}
}else{

Loading…
Cancel
Save