|
@@ -474,52 +474,28 @@ namespace ExtUI {
|
474
|
474
|
#endif
|
475
|
475
|
}
|
476
|
476
|
|
477
|
|
- void onPrinterKilled(PGM_P const msg) {}
|
|
477
|
+ void onStatusChanged(const char * const msg) {
|
|
478
|
+ write_to_lcd_P(PSTR("{E:"));
|
|
479
|
+ write_to_lcd(msg);
|
|
480
|
+ write_to_lcd_P("}");
|
|
481
|
+ }
|
|
482
|
+
|
|
483
|
+ // Not needed for Malyan LCD
|
|
484
|
+ void onPrinterKilled(PGM_P const msg) { UNUSED(msg); }
|
478
|
485
|
void onMediaInserted() {};
|
479
|
486
|
void onMediaError() {};
|
480
|
487
|
void onMediaRemoved() {};
|
481
|
|
- void onPlayTone(const uint16_t frequency, const uint16_t duration) {}
|
|
488
|
+ void onPlayTone(const uint16_t frequency, const uint16_t duration) { UNUSED(frequency); UNUSED(duration); }
|
482
|
489
|
void onPrintTimerStarted() {}
|
483
|
490
|
void onPrintTimerPaused() {}
|
484
|
491
|
void onPrintTimerStopped() {}
|
485
|
492
|
void onFilamentRunout() {}
|
486
|
|
- void onUserConfirmRequired(const char * const msg) {}
|
487
|
|
- void onStatusChanged(const char * const msg) {
|
488
|
|
- write_to_lcd_P(PSTR("{E:"));
|
489
|
|
- write_to_lcd(msg);
|
490
|
|
- write_to_lcd_P("}");
|
491
|
|
- }
|
|
493
|
+ void onUserConfirmRequired(const char * const msg) { UNUSED(msg); }
|
492
|
494
|
void onFactoryReset() {}
|
493
|
|
-
|
494
|
|
- void onStoreSettings(char *buff) {
|
495
|
|
- // This is called when saving to EEPROM (i.e. M500). If the ExtUI needs
|
496
|
|
- // permanent data to be stored, it can write up to eeprom_data_size bytes
|
497
|
|
- // into buff.
|
498
|
|
-
|
499
|
|
- // Example:
|
500
|
|
- // static_assert(sizeof(myDataStruct) <= ExtUI::eeprom_data_size);
|
501
|
|
- // memcpy(buff, &myDataStruct, sizeof(myDataStruct));
|
502
|
|
- }
|
503
|
|
-
|
504
|
|
- void onLoadSettings(const char *buff) {
|
505
|
|
- // This is called while loading settings from EEPROM. If the ExtUI
|
506
|
|
- // needs to retrieve data, it should copy up to eeprom_data_size bytes
|
507
|
|
- // from buff
|
508
|
|
-
|
509
|
|
- // Example:
|
510
|
|
- // static_assert(sizeof(myDataStruct) <= ExtUI::eeprom_data_size);
|
511
|
|
- // memcpy(&myDataStruct, buff, sizeof(myDataStruct));
|
512
|
|
- }
|
513
|
|
-
|
514
|
|
- void onConfigurationStoreWritten(bool success) {
|
515
|
|
- // This is called after the entire EEPROM has been written,
|
516
|
|
- // whether successful or not.
|
517
|
|
- }
|
518
|
|
-
|
519
|
|
- void onConfigurationStoreRead(bool success) {
|
520
|
|
- // This is called after the entire EEPROM has been read,
|
521
|
|
- // whether successful or not.
|
522
|
|
- }
|
|
495
|
+ void onStoreSettings(char *buff) { UNUSED(buff); }
|
|
496
|
+ void onLoadSettings(const char *buff) { UNUSED(buff); }
|
|
497
|
+ void onConfigurationStoreWritten(bool success) { UNUSED(success); }
|
|
498
|
+ void onConfigurationStoreRead(bool success) { UNUSED(success); }
|
523
|
499
|
}
|
524
|
500
|
|
525
|
501
|
#endif // MALYAN_LCD
|