From aa8f6f5c22b0a6fb67ed835b8c0ad8f48c925e60 Mon Sep 17 00:00:00 2001 From: murmur Date: Wed, 1 Jan 2025 23:33:25 +0800 Subject: [PATCH] fix pump step bugs --- protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {