Fix ANYCUBIC_LCD_CHIRON compilation (#20807)

Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
Jason Smith
2021-01-21 01:44:03 -08:00
committed by GitHub
parent c0870d417a
commit 0a279cf666
3 changed files with 31 additions and 3 deletions

View File

@ -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;

View File

@ -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