WiP
This commit is contained in:
@@ -25,8 +25,12 @@ void menuModelNotes(event_t event)
|
||||
{
|
||||
if (event == EVT_ENTRY) {
|
||||
strcpy(reusableBuffer.viewText.filename, MODELS_PATH "/");
|
||||
#if defined(EEPROM)
|
||||
char *buf = strcat_modelname(&reusableBuffer.viewText.filename[sizeof(MODELS_PATH)], g_eeGeneral.currModel);
|
||||
strcpy(buf, TEXT_EXT);
|
||||
#else
|
||||
strcat_currentmodelname(&reusableBuffer.viewText.filename[sizeof(MODELS_PATH)]);
|
||||
#endif
|
||||
}
|
||||
|
||||
menuTextView(event);
|
||||
|
||||
@@ -695,6 +695,7 @@ void menuRadioHardware(event_t event)
|
||||
}
|
||||
break;
|
||||
|
||||
#if defined(EEPROM)
|
||||
case ITEM_RADIO_BACKUP_EEPROM:
|
||||
if (LCD_W < 212)
|
||||
lcdDrawText(LCD_W / 2, y, BUTTON(STR_EEBACKUP), attr | CENTERED);
|
||||
@@ -716,6 +717,7 @@ void menuRadioHardware(event_t event)
|
||||
POPUP_CONFIRMATION(STR_CONFIRMRESET, onFactoryResetConfirm);
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,8 +34,12 @@ void readModelNotes()
|
||||
LED_ERROR_BEGIN();
|
||||
|
||||
strcpy(reusableBuffer.viewText.filename, MODELS_PATH "/");
|
||||
#if defined(EEPROM)
|
||||
char *buf = strcat_modelname(&reusableBuffer.viewText.filename[sizeof(MODELS_PATH)], g_eeGeneral.currModel);
|
||||
strcpy(buf, TEXT_EXT);
|
||||
#else
|
||||
strcat_currentmodelname(&reusableBuffer.viewText.filename[sizeof(MODELS_PATH)]);
|
||||
#endif
|
||||
|
||||
waitKeysReleased();
|
||||
event_t event = EVT_ENTRY;
|
||||
|
||||
Reference in New Issue
Block a user