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