|
@@ -535,12 +535,19 @@ static void lcd_implementation_status_screen() {
|
535
|
535
|
// When everything is ok you see a constant 'X'.
|
536
|
536
|
|
537
|
537
|
static char xstring[5], ystring[5], zstring[7];
|
|
538
|
+ #if ENABLED(FILAMENT_LCD_DISPLAY) && DISABLED(SDSUPPORT)
|
|
539
|
+ static char wstring[5], mstring[4];
|
|
540
|
+ #endif
|
538
|
541
|
|
539
|
542
|
// At the first page, regenerate the XYZ strings
|
540
|
543
|
if (page.page == 0) {
|
541
|
544
|
strcpy(xstring, ftostr4sign(current_position[X_AXIS]));
|
542
|
545
|
strcpy(ystring, ftostr4sign(current_position[Y_AXIS]));
|
543
|
546
|
strcpy(zstring, ftostr52sp(current_position[Z_AXIS] + 0.00001));
|
|
547
|
+ #if ENABLED(FILAMENT_LCD_DISPLAY) && DISABLED(SDSUPPORT)
|
|
548
|
+ strcpy(wstring, ftostr12ns(filament_width_meas));
|
|
549
|
+ strcpy(mstring, itostr3(100.0 * volumetric_multiplier[FILAMENT_SENSOR_EXTRUDER_NUM]));
|
|
550
|
+ #endif
|
544
|
551
|
}
|
545
|
552
|
|
546
|
553
|
if (PAGE_CONTAINS(XYZ_FRAME_TOP, XYZ_FRAME_TOP + XYZ_FRAME_HEIGHT - 1)) {
|
|
@@ -591,6 +598,22 @@ static void lcd_implementation_status_screen() {
|
591
|
598
|
u8g.setPrintPos(12, 50);
|
592
|
599
|
lcd_print(itostr3(feedrate_percentage));
|
593
|
600
|
u8g.print('%');
|
|
601
|
+
|
|
602
|
+ //
|
|
603
|
+ // Filament sensor display if SD is disabled
|
|
604
|
+ //
|
|
605
|
+ #if DISABLED(SDSUPPORT) && ENABLED(FILAMENT_LCD_DISPLAY)
|
|
606
|
+ u8g.setPrintPos(56, 50);
|
|
607
|
+ lcd_print(wstring);
|
|
608
|
+ u8g.setPrintPos(102, 50);
|
|
609
|
+ lcd_print(mstring);
|
|
610
|
+ u8g.print('%');
|
|
611
|
+ lcd_setFont(FONT_MENU);
|
|
612
|
+ u8g.setPrintPos(47, 50);
|
|
613
|
+ lcd_print(LCD_STR_FILAM_DIA);
|
|
614
|
+ u8g.setPrintPos(93, 50);
|
|
615
|
+ lcd_print(LCD_STR_FILAM_MUL);
|
|
616
|
+ #endif
|
594
|
617
|
}
|
595
|
618
|
|
596
|
619
|
//
|
|
@@ -602,19 +625,21 @@ static void lcd_implementation_status_screen() {
|
602
|
625
|
if (PAGE_CONTAINS(STATUS_BASELINE + 1 - INFO_FONT_HEIGHT, STATUS_BASELINE)) {
|
603
|
626
|
u8g.setPrintPos(0, STATUS_BASELINE);
|
604
|
627
|
|
605
|
|
- #if DISABLED(FILAMENT_LCD_DISPLAY)
|
606
|
|
- lcd_print(lcd_status_message);
|
607
|
|
- #else
|
|
628
|
+ #if ENABLED(FILAMENT_LCD_DISPLAY) && ENABLED(SDSUPPORT)
|
608
|
629
|
if (PENDING(millis(), previous_lcd_status_ms + 5000UL)) { //Display both Status message line and Filament display on the last line
|
609
|
630
|
lcd_print(lcd_status_message);
|
610
|
631
|
}
|
611
|
632
|
else {
|
612
|
|
- lcd_printPGM(PSTR("dia:"));
|
|
633
|
+ lcd_printPGM(PSTR(LCD_STR_FILAM_DIA));
|
|
634
|
+ u8g.print(':');
|
613
|
635
|
lcd_print(ftostr12ns(filament_width_meas));
|
614
|
|
- lcd_printPGM(PSTR(" factor:"));
|
|
636
|
+ lcd_printPGM(PSTR(" " LCD_STR_FILAM_MUL));
|
|
637
|
+ u8g.print(':');
|
615
|
638
|
lcd_print(itostr3(100.0 * volumetric_multiplier[FILAMENT_SENSOR_EXTRUDER_NUM]));
|
616
|
639
|
u8g.print('%');
|
617
|
640
|
}
|
|
641
|
+ #else
|
|
642
|
+ lcd_print(lcd_status_message);
|
618
|
643
|
#endif
|
619
|
644
|
}
|
620
|
645
|
}
|