Send //action:notifiactions only when M79 is active
This commit is contained in:
parent
aac5f500e1
commit
9ec60729db
|
|
@ -365,9 +365,9 @@ void lcdui_print_percent_done(void)
|
|||
const int8_t nextSheet = eeprom_next_initialized_sheet(sheetNR);
|
||||
if ((nextSheet >= 0) && (sheetNR != nextSheet))
|
||||
{
|
||||
char sheet[8];
|
||||
eeprom_read_block(sheet, EEPROM_Sheets_base->s[sheetNR].name, 7);
|
||||
sheet[7] = '\0';
|
||||
char sheet[sizeof(Sheet::name)];
|
||||
eeprom_read_block(sheet, EEPROM_Sheets_base->s[sheetNR].name, sizeof(Sheet::name));
|
||||
sheet[sizeof(Sheet::name)] = '\0';
|
||||
lcd_printf_P(PSTR("%-7s"),sheet);
|
||||
return; //do not also print the percentage
|
||||
}
|
||||
|
|
@ -5112,7 +5112,9 @@ static void change_sheet()
|
|||
//! @brief Send a notification to the host. Param 'message' must reside in program memory!
|
||||
void sendHostNotification_P(const char* message)
|
||||
{
|
||||
printf_P(MSG_HOST_ACTION_NOTIFICATION, message);
|
||||
if (M79_timer_get_status()) {
|
||||
printf_P(MSG_HOST_ACTION_NOTIFICATION, message);
|
||||
}
|
||||
}
|
||||
|
||||
static void lcd_rename_sheet_menu()
|
||||
|
|
|
|||
Loading…
Reference in New Issue