Patch lcd_implementation_status_screen compiler warning

This commit is contained in:
Scott Lahteine 2017-05-14 00:12:09 -05:00 committed by Scott Lahteine
parent 2266c0780d
commit f1a1c6873e

View File

@ -777,7 +777,7 @@ static void lcd_implementation_status_screen() {
// Draw the progress bar if the message has shown long enough // Draw the progress bar if the message has shown long enough
// or if there is no message set. // or if there is no message set.
if (card.isFileOpen() && ELAPSED(millis(), progress_bar_ms + PROGRESS_BAR_MSG_TIME) || !lcd_status_message[0]) if (card.isFileOpen() && (ELAPSED(millis(), progress_bar_ms + PROGRESS_BAR_MSG_TIME) || !lcd_status_message[0]))
return lcd_draw_progress_bar(card.percentDone()); return lcd_draw_progress_bar(card.percentDone());
#elif ENABLED(FILAMENT_LCD_DISPLAY) && ENABLED(SDSUPPORT) #elif ENABLED(FILAMENT_LCD_DISPLAY) && ENABLED(SDSUPPORT)