fix pump step bugs
This commit is contained in:
parent
22bee679a8
commit
aa8f6f5c22
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user