Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Remove CREALITY_RTS refs
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Sep 28, 2024
1 parent aa44542 commit 2afc2f2
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions Marlin/src/gcode/ota/M936.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit 2afc2f2

Please sign in to comment.