소스 검색

Fix MALYAN_LCD message bugs

Fix #9711
Replacing #9731
Scott Lahteine 7 년 전
부모
커밋
4303f2e377
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3
    3
      Marlin/src/lcd/malyanlcd.cpp

+ 3
- 3
Marlin/src/lcd/malyanlcd.cpp 파일 보기

66
 
66
 
67
 // This is based on longest sys command + a filename, plus some buffer
67
 // This is based on longest sys command + a filename, plus some buffer
68
 // in case we encounter some data we don't recognize
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
 #define MAX_CURLY_COMMAND (32 + LONG_FILENAME_LENGTH) * 2
70
 #define MAX_CURLY_COMMAND (32 + LONG_FILENAME_LENGTH) * 2
71
 
71
 
72
 // Track incoming command bytes from the LCD
72
 // Track incoming command bytes from the LCD
78
   uint8_t message_length = min(strlen_P(message), sizeof(encoded_message));
78
   uint8_t message_length = min(strlen_P(message), sizeof(encoded_message));
79
 
79
 
80
   for (uint8_t i = 0; i < message_length; i++)
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
   LCD_SERIAL.Print::write(encoded_message, message_length);
83
   LCD_SERIAL.Print::write(encoded_message, message_length);
84
 }
84
 }
431
   write_to_lcd_P(PSTR("{SYS:STARTED}\r\n"));
431
   write_to_lcd_P(PSTR("{SYS:STARTED}\r\n"));
432
 
432
 
433
   // send a version that says "unsupported"
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
   // No idea why it does this twice.
436
   // No idea why it does this twice.
437
   write_to_lcd_P(PSTR("{SYS:STARTED}\r\n"));
437
   write_to_lcd_P(PSTR("{SYS:STARTED}\r\n"));

Loading…
취소
저장