|
|
@ -214,7 +214,7 @@ bool FeiTeServoMotor::reCalibration(int id, int16_t pos) { |
|
|
|
int16_t nowpos; |
|
|
|
DO(getNowPos(id, nowpos)); |
|
|
|
ZLOGI(TAG, "reCalibration id:%d nowpos:%d:%d", id, nowpos, pos); |
|
|
|
DO(setTargetPos(id, pos)); |
|
|
|
DO(setTargetPos(id, nowpos)); |
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
@ -355,6 +355,7 @@ bool FeiTeServoMotor::tx_and_rx(uint8_t* tx, uint8_t txdatalen, uint8_t* rx, uin |
|
|
|
} |
|
|
|
HAL_UART_DMAStop(m_uart); |
|
|
|
if (overtime_flag) { |
|
|
|
// ZLOGE(TAG, "txandrx overtime");
|
|
|
|
return false; |
|
|
|
} |
|
|
|
return true; |
|
|
|