Skip to content

Commit bf5210d

Browse files
authored
fix multi-serial(ESP3D, etc...) bug (#565)
1 parent 78e3b0e commit bf5210d

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

TFT/src/User/API/parseACK.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,11 @@ void parseRcvGcode(void)
407407
if(i != SERIAL_PORT && infoHost.rx_ok[i] == true)
408408
{
409409
infoHost.rx_ok[i] = false;
410-
syncL2CacheFromL1(i);
411-
storeCmdFromUART(i, dmaL2Cache);
410+
while(dmaL1NotEmpty(i))
411+
{
412+
syncL2CacheFromL1(i);
413+
storeCmdFromUART(i, dmaL2Cache);
414+
}
412415
}
413416
}
414417
#endif

TFT/src/User/Menu/StatusScreen.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,8 @@ void toggleTool(void)
290290
{
291291
gantryCmdWait = true;
292292
storeCmd("M114\n");
293-
storeCmd("M220\nM221\n");
293+
storeCmd("M220\n");
294+
storeCmd("M221\n");
294295
}
295296
}
296297
else

0 commit comments

Comments
 (0)