parent
2b7e5c8e6c
commit
83e093f5cc
@ -63,7 +63,7 @@
|
||||
|
||||
// This is based on longest sys command + a filename, plus some buffer
|
||||
// in case we encounter some data we don't recognize
|
||||
// There is no evidence a line will ever be this long, but better safe than sory
|
||||
// There is no evidence a line will ever be this long, but better safe than sorry
|
||||
#define MAX_CURLY_COMMAND (32 + LONG_FILENAME_LENGTH) * 2
|
||||
|
||||
// Track incoming command bytes from the LCD
|
||||
@ -75,7 +75,7 @@ void write_to_lcd_P(const char * const message) {
|
||||
uint8_t message_length = min(strlen_P(message), sizeof(encoded_message));
|
||||
|
||||
for (uint8_t i = 0; i < message_length; i++)
|
||||
encoded_message[i] = pgm_read_byte(message[i]) | 0x80;
|
||||
encoded_message[i] = pgm_read_byte(&message[i]) | 0x80;
|
||||
|
||||
LCD_SERIAL.Print::write(encoded_message, message_length);
|
||||
}
|
||||
@ -428,7 +428,7 @@ void lcd_init() {
|
||||
write_to_lcd_P(PSTR("{SYS:STARTED}\r\n"));
|
||||
|
||||
// send a version that says "unsupported"
|
||||
write_to_lcd_P(PSTR("{VER:66}\r\n"));
|
||||
write_to_lcd_P(PSTR("{VER:99}\r\n"));
|
||||
|
||||
// No idea why it does this twice.
|
||||
write_to_lcd_P(PSTR("{SYS:STARTED}\r\n"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user