Skip to content

Commit 2afc2f2

Browse files
committed
πŸ§‘β€πŸ’» Remove CREALITY_RTS refs
1 parent aa44542 commit 2afc2f2

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

β€ŽMarlin/src/gcode/ota/M936.cpp

+1-15
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@
2626
#include "../gcode.h"
2727
#include "../../libs/BL24CXX.h"
2828

29-
#if ENABLED(CREALITY_RTS)
30-
#include "../../lcd/rts/lcd_rts.h"
31-
#endif
32-
3329
#define OTA_FLAG_EEPROM 90
3430

3531
//#define DEBUG_OUT 1
@@ -48,21 +44,11 @@ void GcodeSuite::M936() {
4844
// Set the OTA board firmware upgrade flag ahead of reboot.
4945
ota_update_flag = 0x01;
5046
DEBUG_ECHOLNPGM("Motherboard upgrade flag set");
51-
TERN_(CREALITY_RTS, RTS_Error(Error_205));
5247
break;
53-
54-
#if ENABLED(CREALITY_RTS)
55-
case 3:
56-
// Set the OTA screen firmware upgrade flag ahead of reboot.
57-
ota_update_flag = 0x02;
58-
DEBUG_ECHOLNPGM("DWIN upgrade flag set");
59-
TERN_(CREALITY_RTS, RTS_Error(Error_206));
60-
break;
61-
#endif
6248
}
6349

6450
switch (ota) {
65-
case 2: TERN_(CREALITY_RTS, case 3:)
51+
case 2:
6652
BL24CXX::write(OTA_FLAG_EEPROM, &ota_update_flag, sizeof(ota_update_flag));
6753
safe_delay(100);
6854
hal.reboot();

0 commit comments

Comments
Β (0)