|
@@ -66,7 +66,7 @@
|
66
|
66
|
|
67
|
67
|
// This is based on longest sys command + a filename, plus some buffer
|
68
|
68
|
// in case we encounter some data we don't recognize
|
69
|
|
-// There is no evidence a line will ever be this long, but better safe than sory
|
|
69
|
+// There is no evidence a line will ever be this long, but better safe than sorry
|
70
|
70
|
#define MAX_CURLY_COMMAND (32 + LONG_FILENAME_LENGTH) * 2
|
71
|
71
|
|
72
|
72
|
// Track incoming command bytes from the LCD
|
|
@@ -78,7 +78,7 @@ void write_to_lcd_P(const char * const message) {
|
78
|
78
|
uint8_t message_length = min(strlen_P(message), sizeof(encoded_message));
|
79
|
79
|
|
80
|
80
|
for (uint8_t i = 0; i < message_length; i++)
|
81
|
|
- encoded_message[i] = pgm_read_byte(message[i]) | 0x80;
|
|
81
|
+ encoded_message[i] = pgm_read_byte(&message[i]) | 0x80;
|
82
|
82
|
|
83
|
83
|
LCD_SERIAL.Print::write(encoded_message, message_length);
|
84
|
84
|
}
|
|
@@ -431,7 +431,7 @@ void lcd_init() {
|
431
|
431
|
write_to_lcd_P(PSTR("{SYS:STARTED}\r\n"));
|
432
|
432
|
|
433
|
433
|
// send a version that says "unsupported"
|
434
|
|
- write_to_lcd_P(PSTR("{VER:66}\r\n"));
|
|
434
|
+ write_to_lcd_P(PSTR("{VER:99}\r\n"));
|
435
|
435
|
|
436
|
436
|
// No idea why it does this twice.
|
437
|
437
|
write_to_lcd_P(PSTR("{SYS:STARTED}\r\n"));
|