Fix ANYCUBIC_LCD_CHIRON compilation (#20807)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
@ -44,6 +44,8 @@ using namespace ExtUI;
|
||||
|
||||
namespace Anycubic {
|
||||
|
||||
FileNavigator filenavigator;
|
||||
|
||||
FileList FileNavigator::filelist; // Instance of the Marlin file API
|
||||
char FileNavigator::currentfoldername[MAX_PATH_LEN]; // Current folder path
|
||||
uint16_t FileNavigator::lastindex;
|
||||
|
@ -54,6 +54,8 @@ namespace Anycubic {
|
||||
float ChironTFT::live_Zoffset;
|
||||
file_menu_t ChironTFT::file_menu;
|
||||
|
||||
ChironTFT Chiron;
|
||||
|
||||
ChironTFT::ChironTFT(){}
|
||||
|
||||
void ChironTFT::Startup() {
|
||||
@ -574,10 +576,11 @@ namespace Anycubic {
|
||||
} break;
|
||||
|
||||
case 15: // A15 Resuming from outage
|
||||
if (printer_state == AC_printer_resuming_from_power_outage)
|
||||
if (printer_state == AC_printer_resuming_from_power_outage) {
|
||||
// Need to home here to restore the Z position
|
||||
injectCommands_P(AC_cmnd_power_loss_recovery);
|
||||
injectCommands_P(PSTR("M1000")); // home and start recovery
|
||||
injectCommands(AC_cmnd_power_loss_recovery);
|
||||
injectCommands("M1000"); // home and start recovery
|
||||
}
|
||||
break;
|
||||
|
||||
case 16: { // A16 Set HotEnd temp A17 S170
|
||||
|
Reference in New Issue
Block a user