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
// 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

View File

@@ -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