Bugfix for dumb wiggeling after stopping SD print.

This commit is contained in:
Knutwurst
2020-06-06 00:17:24 +02:00
parent bc9a6a2a4d
commit c77a32a674
2 changed files with 7 additions and 6 deletions

View File

@@ -42,9 +42,9 @@
// to which to write the next incoming character and tail is the index of the // to which to write the next incoming character and tail is the index of the
// location from which to read. // location from which to read.
#if (RAMEND < 1000) #if (RAMEND < 1000)
#define SERIAL_BUFFER_SIZE 16
#else
#define SERIAL_BUFFER_SIZE 64 #define SERIAL_BUFFER_SIZE 64
#else
#define SERIAL_BUFFER_SIZE 128
#endif #endif
struct ring_buffer struct ring_buffer

View File

@@ -294,14 +294,15 @@ void AnycubicTouchscreenClass::StopPrint()
wait_for_user = false; wait_for_user = false;
wait_for_heatup = false; wait_for_heatup = false;
card.endFilePrint(); card.endFilePrint();
queue.clear(); card.closefile();
#ifdef ANYCUBIC_TFT_DEBUG //queue.clear();
#ifdef ANYCUBIC_TFT_DEBUGANYCUBIC_TFT_STATE_SDSTOP_REQ
SERIAL_ECHOLNPGM("DEBUG: Stopped and cleared"); SERIAL_ECHOLNPGM("DEBUG: Stopped and cleared");
#endif #endif
print_job_timer.stop(); //print_job_timer.stop();
thermalManager.disable_all_heaters(); thermalManager.disable_all_heaters();
// we are not parked yet, do it in the display state routine // 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 // turn off fan, cancel any heatups and set display state
ai3m_pause_state = 0; ai3m_pause_state = 0;
#ifdef ANYCUBIC_TFT_DEBUG #ifdef ANYCUBIC_TFT_DEBUG