소스 검색

Make sure the MMU error title never overflows on the LCD

D.R.racer 3 년 전
부모
커밋
108f439bb7
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Firmware/mmu2_reporting.cpp

+ 1 - 1
Firmware/mmu2_reporting.cpp

@@ -49,7 +49,7 @@ back_to_choices:
     lcd_update_enable(false);
      
     // Print title and header
-    lcd_printf_P(PSTR("%S\nprusa3d.com/ERR04%hu"), _T(PrusaErrorTitle(ei)), PrusaErrorCode(ei) );
+    lcd_printf_P(PSTR("%.20S\nprusa3d.com/ERR04%hu"), _T(PrusaErrorTitle(ei)), PrusaErrorCode(ei) );
 
     // Render the choices and store selection in 'choice_selected'
     choice_selected = lcd_show_multiscreen_message_with_choices_and_wait_P(