🧑💻 Remove CREALITY_RTS refs
This commit is contained in:
parent
aa44542f76
commit
2afc2f268a
1 changed files with 1 additions and 15 deletions
|
|
@ -26,10 +26,6 @@
|
||||||
#include "../gcode.h"
|
#include "../gcode.h"
|
||||||
#include "../../libs/BL24CXX.h"
|
#include "../../libs/BL24CXX.h"
|
||||||
|
|
||||||
#if ENABLED(CREALITY_RTS)
|
|
||||||
#include "../../lcd/rts/lcd_rts.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define OTA_FLAG_EEPROM 90
|
#define OTA_FLAG_EEPROM 90
|
||||||
|
|
||||||
//#define DEBUG_OUT 1
|
//#define DEBUG_OUT 1
|
||||||
|
|
@ -48,21 +44,11 @@ void GcodeSuite::M936() {
|
||||||
// Set the OTA board firmware upgrade flag ahead of reboot.
|
// Set the OTA board firmware upgrade flag ahead of reboot.
|
||||||
ota_update_flag = 0x01;
|
ota_update_flag = 0x01;
|
||||||
DEBUG_ECHOLNPGM("Motherboard upgrade flag set");
|
DEBUG_ECHOLNPGM("Motherboard upgrade flag set");
|
||||||
TERN_(CREALITY_RTS, RTS_Error(Error_205));
|
|
||||||
break;
|
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) {
|
switch (ota) {
|
||||||
case 2: TERN_(CREALITY_RTS, case 3:)
|
case 2:
|
||||||
BL24CXX::write(OTA_FLAG_EEPROM, &ota_update_flag, sizeof(ota_update_flag));
|
BL24CXX::write(OTA_FLAG_EEPROM, &ota_update_flag, sizeof(ota_update_flag));
|
||||||
safe_delay(100);
|
safe_delay(100);
|
||||||
hal.reboot();
|
hal.reboot();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue