Skip to content

Commit

Permalink
Fixed info screen when selected_sheet hasn't been initialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagepc committed Sep 1, 2019
1 parent d347a36 commit 339771a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Firmware/ultralcd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ void lcdui_print_percent_done(void)
bool num = IS_SD_PRINTING || (PRINTER_ACTIVE && (print_percent_done_normal != PRINT_PERCENT_DONE_INIT));
if (!num || heating_status) // either not printing or heating
{
eeprom_read_block(sheet, EEPROM_Sheets_base->s[selected_sheet].name, 7);
eeprom_read_block(sheet, EEPROM_Sheets_base->s[eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet))].name, 7);
sheet[7] = '\0';
lcd_printf_P(PSTR("%s"),sheet);
}
Expand Down

0 comments on commit 339771a

Please sign in to comment.