Bugfix for dumb wiggeling after stopping SD print.
This commit is contained in:
@@ -42,9 +42,9 @@
|
||||
// to which to write the next incoming character and tail is the index of the
|
||||
// location from which to read.
|
||||
#if (RAMEND < 1000)
|
||||
#define SERIAL_BUFFER_SIZE 16
|
||||
#else
|
||||
#define SERIAL_BUFFER_SIZE 64
|
||||
#else
|
||||
#define SERIAL_BUFFER_SIZE 128
|
||||
#endif
|
||||
|
||||
struct ring_buffer
|
||||
|
@@ -294,14 +294,15 @@ void AnycubicTouchscreenClass::StopPrint()
|
||||
wait_for_user = false;
|
||||
wait_for_heatup = false;
|
||||
card.endFilePrint();
|
||||
queue.clear();
|
||||
#ifdef ANYCUBIC_TFT_DEBUG
|
||||
card.closefile();
|
||||
//queue.clear();
|
||||
#ifdef ANYCUBIC_TFT_DEBUGANYCUBIC_TFT_STATE_SDSTOP_REQ
|
||||
SERIAL_ECHOLNPGM("DEBUG: Stopped and cleared");
|
||||
#endif
|
||||
print_job_timer.stop();
|
||||
//print_job_timer.stop();
|
||||
thermalManager.disable_all_heaters();
|
||||
// we are not parked yet, do it in the display state routine
|
||||
IsParked = false;
|
||||
//IsParked = false;
|
||||
// turn off fan, cancel any heatups and set display state
|
||||
ai3m_pause_state = 0;
|
||||
#ifdef ANYCUBIC_TFT_DEBUG
|
||||
|
Reference in New Issue
Block a user