From c77a32a674e521d1bc9cbaa839e8939aeb65133e Mon Sep 17 00:00:00 2001 From: Knutwurst <36196269+knutwurst@users.noreply.github.com> Date: Sat, 6 Jun 2020 00:17:24 +0200 Subject: [PATCH] Bugfix for dumb wiggeling after stopping SD print. --- Marlin/src/lcd/HardwareSerial.cpp | 4 ++-- Marlin/src/lcd/anycubic_touchscreen.cpp | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Marlin/src/lcd/HardwareSerial.cpp b/Marlin/src/lcd/HardwareSerial.cpp index 2727125e..8c54d805 100755 --- a/Marlin/src/lcd/HardwareSerial.cpp +++ b/Marlin/src/lcd/HardwareSerial.cpp @@ -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 diff --git a/Marlin/src/lcd/anycubic_touchscreen.cpp b/Marlin/src/lcd/anycubic_touchscreen.cpp index 9b5e30be..9099d484 100755 --- a/Marlin/src/lcd/anycubic_touchscreen.cpp +++ b/Marlin/src/lcd/anycubic_touchscreen.cpp @@ -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