Allow fractional seconds in G4 and M0
This commit is contained in:
parent
b2bd9aae7c
commit
27ad381e25
|
@ -1793,7 +1793,7 @@ inline void gcode_G4() {
|
||||||
millis_t codenum = 0;
|
millis_t codenum = 0;
|
||||||
|
|
||||||
if (code_seen('P')) codenum = code_value_long(); // milliseconds to wait
|
if (code_seen('P')) codenum = code_value_long(); // milliseconds to wait
|
||||||
if (code_seen('S')) codenum = code_value_long() * 1000; // seconds to wait
|
if (code_seen('S')) codenum = code_value() * 1000; // seconds to wait
|
||||||
|
|
||||||
st_synchronize();
|
st_synchronize();
|
||||||
refresh_cmd_timeout();
|
refresh_cmd_timeout();
|
||||||
|
@ -2660,7 +2660,7 @@ inline void gcode_G92() {
|
||||||
hasP = codenum > 0;
|
hasP = codenum > 0;
|
||||||
}
|
}
|
||||||
if (code_seen('S')) {
|
if (code_seen('S')) {
|
||||||
codenum = code_value_short() * 1000UL; // seconds to wait
|
codenum = code_value() * 1000; // seconds to wait
|
||||||
hasS = codenum > 0;
|
hasS = codenum > 0;
|
||||||
}
|
}
|
||||||
char* starpos = strchr(src, '*');
|
char* starpos = strchr(src, '*');
|
||||||
|
|
Loading…
Reference in a new issue