|
|
@ -320,11 +320,11 @@ bool FeiTeServoMotor::write_reg(uint8_t id, bool async, uint8_t add, uint8_t* da |
|
|
|
uint8_t checksum = checksum_packet((uint8_t*)cmd_header, txpacketlen); |
|
|
|
m_txbuf[txpacketlen - 1] = checksum; |
|
|
|
if (!tx_and_rx(m_txbuf, txpacketlen, m_rxbuf, rxpacketlen, OVERTIME)) { |
|
|
|
ZLOGE(TAG, "write_reg fail,overtime"); |
|
|
|
ZLOGE(TAG, "%d write_reg fail,overtime",id); |
|
|
|
return false; |
|
|
|
} |
|
|
|
if (!(receipt_header->header == 0xffff && receipt_header->id == id)) { |
|
|
|
ZLOGE(TAG, "write_reg fail,receipt header error"); |
|
|
|
ZLOGE(TAG, "%d write_reg fail,receipt header error",id); |
|
|
|
return false; |
|
|
|
} |
|
|
|
return true; |
|
|
|