From 2afc2f268aaa2db98c9666bc47b573abfd6742c1 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 27 Sep 2024 21:47:07 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=91=E2=80=8D=F0=9F=92=BB=20Remove=20CR?= =?UTF-8?q?EALITY=5FRTS=20refs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/gcode/ota/M936.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/Marlin/src/gcode/ota/M936.cpp b/Marlin/src/gcode/ota/M936.cpp index 6324b3db437f..f42d197f4e7b 100644 --- a/Marlin/src/gcode/ota/M936.cpp +++ b/Marlin/src/gcode/ota/M936.cpp @@ -26,10 +26,6 @@ #include "../gcode.h" #include "../../libs/BL24CXX.h" -#if ENABLED(CREALITY_RTS) - #include "../../lcd/rts/lcd_rts.h" -#endif - #define OTA_FLAG_EEPROM 90 //#define DEBUG_OUT 1 @@ -48,21 +44,11 @@ void GcodeSuite::M936() { // Set the OTA board firmware upgrade flag ahead of reboot. ota_update_flag = 0x01; DEBUG_ECHOLNPGM("Motherboard upgrade flag set"); - TERN_(CREALITY_RTS, RTS_Error(Error_205)); break; - - #if ENABLED(CREALITY_RTS) - case 3: - // Set the OTA screen firmware upgrade flag ahead of reboot. - ota_update_flag = 0x02; - DEBUG_ECHOLNPGM("DWIN upgrade flag set"); - TERN_(CREALITY_RTS, RTS_Error(Error_206)); - break; - #endif } switch (ota) { - case 2: TERN_(CREALITY_RTS, case 3:) + case 2: BL24CXX::write(OTA_FLAG_EEPROM, &ota_update_flag, sizeof(ota_update_flag)); safe_delay(100); hal.reboot();