File tree 1 file changed +1
-15
lines changed
1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change 26
26
#include " ../gcode.h"
27
27
#include " ../../libs/BL24CXX.h"
28
28
29
- #if ENABLED(CREALITY_RTS)
30
- #include " ../../lcd/rts/lcd_rts.h"
31
- #endif
32
-
33
29
#define OTA_FLAG_EEPROM 90
34
30
35
31
// #define DEBUG_OUT 1
@@ -48,21 +44,11 @@ void GcodeSuite::M936() {
48
44
// Set the OTA board firmware upgrade flag ahead of reboot.
49
45
ota_update_flag = 0x01 ;
50
46
DEBUG_ECHOLNPGM (" Motherboard upgrade flag set" );
51
- TERN_ (CREALITY_RTS, RTS_Error (Error_205));
52
47
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
62
48
}
63
49
64
50
switch (ota) {
65
- case 2 : TERN_ (CREALITY_RTS, case 3 :)
51
+ case 2 :
66
52
BL24CXX::write (OTA_FLAG_EEPROM, &ota_update_flag, sizeof (ota_update_flag));
67
53
safe_delay (100 );
68
54
hal.reboot ();
You canβt perform that action at this time.
0 commit comments