|
@@ -1740,14 +1740,15 @@ inline void gcode_G2_G3(bool clockwise) {
|
1740
|
1740
|
inline void gcode_G4() {
|
1741
|
1741
|
millis_t codenum = 0;
|
1742
|
1742
|
|
1743
|
|
- LCD_MESSAGEPGM(MSG_DWELL);
|
1744
|
|
-
|
1745
|
1743
|
if (code_seen('P')) codenum = code_value_long(); // milliseconds to wait
|
1746
|
1744
|
if (code_seen('S')) codenum = code_value_long() * 1000; // seconds to wait
|
1747
|
1745
|
|
1748
|
1746
|
st_synchronize();
|
1749
|
1747
|
refresh_cmd_timeout();
|
1750
|
1748
|
codenum += previous_cmd_ms; // keep track of when we started waiting
|
|
1749
|
+
|
|
1750
|
+ if (!lcd_hasstatus()) LCD_MESSAGEPGM(MSG_DWELL);
|
|
1751
|
+
|
1751
|
1752
|
while (millis() < codenum) {
|
1752
|
1753
|
manage_heater();
|
1753
|
1754
|
manage_inactivity();
|