Bugfix
- Buffer flush added to the the end of M190 loop - Inverted position polling when canceling print via display
This commit is contained in:
parent
42f52d34b4
commit
01e152b456
|
@ -478,21 +478,21 @@ void AnycubicTFTClass::StateHandler()
|
||||||
#ifdef ANYCUBIC_TFT_DEBUG
|
#ifdef ANYCUBIC_TFT_DEBUG
|
||||||
SERIAL_ECHOLNPGM("TFT Serial Debug: SD print stopped... J16");
|
SERIAL_ECHOLNPGM("TFT Serial Debug: SD print stopped... J16");
|
||||||
#endif
|
#endif
|
||||||
if((current_position[Z_AXIS]>=200)) {
|
if((current_position[Z_AXIS]<150)) {
|
||||||
enqueue_and_echo_commands_P(PSTR("G91"));
|
enqueue_and_echo_commands_P(PSTR("G91"));
|
||||||
enqueue_and_echo_commands_P(PSTR("G1 Z1 F240"));
|
enqueue_and_echo_commands_P(PSTR("G1 Z10 F240"));
|
||||||
enqueue_and_echo_commands_P(PSTR("G90"));
|
|
||||||
} else if ((current_position[Z_AXIS]<200)) {
|
|
||||||
enqueue_and_echo_commands_P(PSTR("G91"));
|
|
||||||
enqueue_and_echo_commands_P(PSTR("G1 Z5 F240"));
|
|
||||||
enqueue_and_echo_commands_P(PSTR("G90"));
|
enqueue_and_echo_commands_P(PSTR("G90"));
|
||||||
} else if ((current_position[Z_AXIS]<190)) {
|
} else if ((current_position[Z_AXIS]<190)) {
|
||||||
enqueue_and_echo_commands_P(PSTR("G91"));
|
enqueue_and_echo_commands_P(PSTR("G91"));
|
||||||
enqueue_and_echo_commands_P(PSTR("G1 Z10 F240"));
|
enqueue_and_echo_commands_P(PSTR("G1 Z10 F240"));
|
||||||
enqueue_and_echo_commands_P(PSTR("G90"));
|
enqueue_and_echo_commands_P(PSTR("G90"));
|
||||||
} else if ((current_position[Z_AXIS]<150)) {
|
} else if ((current_position[Z_AXIS]<200)) {
|
||||||
enqueue_and_echo_commands_P(PSTR("G91"));
|
enqueue_and_echo_commands_P(PSTR("G91"));
|
||||||
enqueue_and_echo_commands_P(PSTR("G1 Z35 F240"));
|
enqueue_and_echo_commands_P(PSTR("G1 Z5 F240"));
|
||||||
|
enqueue_and_echo_commands_P(PSTR("G90"));
|
||||||
|
} else if ((current_position[Z_AXIS]>=200)) {
|
||||||
|
enqueue_and_echo_commands_P(PSTR("G91"));
|
||||||
|
enqueue_and_echo_commands_P(PSTR("G1 Z1 F240"));
|
||||||
enqueue_and_echo_commands_P(PSTR("G90"));
|
enqueue_and_echo_commands_P(PSTR("G90"));
|
||||||
}
|
}
|
||||||
enqueue_and_echo_commands_P(PSTR("M84"));
|
enqueue_and_echo_commands_P(PSTR("M84"));
|
||||||
|
|
|
@ -8706,6 +8706,9 @@ inline void gcode_M109() {
|
||||||
#if DISABLED(BUSY_WHILE_HEATING)
|
#if DISABLED(BUSY_WHILE_HEATING)
|
||||||
KEEPALIVE_STATE(IN_HANDLER);
|
KEEPALIVE_STATE(IN_HANDLER);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// flush the serial buffer after heating to prevent lockup by m105
|
||||||
|
flush_and_request_resend();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // HAS_HEATED_BED
|
#endif // HAS_HEATED_BED
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
* here we define this default string as the date where the latest release
|
* here we define this default string as the date where the latest release
|
||||||
* version was tagged.
|
* version was tagged.
|
||||||
*/
|
*/
|
||||||
#define STRING_DISTRIBUTION_DATE "2019-02-05"
|
#define STRING_DISTRIBUTION_DATE "2019-02-06"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Required minimum Configuration.h and Configuration_adv.h file versions.
|
* Required minimum Configuration.h and Configuration_adv.h file versions.
|
||||||
|
|
|
@ -165,7 +165,6 @@ G26 C H200 P25 R25
|
||||||
- Put in the new value like this: `M92 X80.00 Y80.00 Z400.00 Exxx.xx`, replacing `x` with your value
|
- Put in the new value like this: `M92 X80.00 Y80.00 Z400.00 Exxx.xx`, replacing `x` with your value
|
||||||
- Save with `M500`
|
- Save with `M500`
|
||||||
- Finish with `M82`
|
- Finish with `M82`
|
||||||
|
|
||||||
- You can repeat the process if you want to get even more precise, you'd have to replace 92.6 with your newly calibrated value in the next calculation.
|
- You can repeat the process if you want to get even more precise, you'd have to replace 92.6 with your newly calibrated value in the next calculation.
|
||||||
|
|
||||||
### PID tuning
|
### PID tuning
|
||||||
|
|
Loading…
Reference in New Issue