diff --git a/protocol.c b/protocol.c index fa85ba4..346882f 100644 --- a/protocol.c +++ b/protocol.c @@ -1639,8 +1639,8 @@ static uint8_t HandlePumpStepControl(uint8_t *Buff, uint8_t len) { continue; } uint8_t rst = systemStatus.rst; - uint8_t index = Buff[index*4]; int32_t step = (Buff[index*4+1]<<24) | (Buff[index*4+2]<<16) | (Buff[index*4+3]<<8) | Buff[index*4+4]; + log_d("泵步进设置: %d[%d], %d",index, dp.pump[index].id, step); SetPumpStepTarget(index, step); StartPumpRelativeMove(index); if(rst != systemStatus.rst) {