|
@@ -113,7 +113,8 @@ void write_to_lcd(const char * const message) {
|
113
|
113
|
*/
|
114
|
114
|
void process_lcd_c_command(const char* command) {
|
115
|
115
|
switch (command[0]) {
|
116
|
|
- case 'C': {
|
|
116
|
+ case 'C': // Cope with both V1 early rev and later LCDs.
|
|
117
|
+ case 'S': {
|
117
|
118
|
int raw_feedrate = atoi(command + 1);
|
118
|
119
|
feedrate_percentage = raw_feedrate * 10;
|
119
|
120
|
feedrate_percentage = constrain(feedrate_percentage, 10, 999);
|
|
@@ -319,11 +320,6 @@ void process_lcd_s_command(const char* command) {
|
319
|
320
|
write_to_lcd(message_buffer);
|
320
|
321
|
} break;
|
321
|
322
|
|
322
|
|
- case 'H':
|
323
|
|
- // Home all axis
|
324
|
|
- queue.inject_P(PSTR("G28"));
|
325
|
|
- break;
|
326
|
|
-
|
327
|
323
|
case 'L': {
|
328
|
324
|
#if ENABLED(SDSUPPORT)
|
329
|
325
|
if (!card.isDetected()) card.initsd();
|
|
@@ -474,14 +470,15 @@ namespace ExtUI {
|
474
|
470
|
#endif
|
475
|
471
|
}
|
476
|
472
|
|
477
|
|
- void onStatusChanged(const char * const msg) {
|
|
473
|
+ // {E:<msg>} is for error states.
|
|
474
|
+ void onPrinterKilled(PGM_P msg) {
|
478
|
475
|
write_to_lcd_P(PSTR("{E:"));
|
479
|
|
- write_to_lcd(msg);
|
|
476
|
+ write_to_lcd_P(msg);
|
480
|
477
|
write_to_lcd_P("}");
|
481
|
478
|
}
|
482
|
479
|
|
483
|
480
|
// Not needed for Malyan LCD
|
484
|
|
- void onPrinterKilled(PGM_P const msg) { UNUSED(msg); }
|
|
481
|
+ void onStatusChanged(const char * const msg) { UNUSED(msg); }
|
485
|
482
|
void onMediaInserted() {};
|
486
|
483
|
void onMediaError() {};
|
487
|
484
|
void onMediaRemoved() {};
|