mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-02 03:15:37 +00:00
Improve SRAM and Flash write cycles
This commit is contained in:
1 parent
b9ce4934d8
commit
6b94ae4ed3
11 files changed
+436
-52
No files matched your search
+6
-1
@@ -1363,6 +1363,11 @@ static void CheckKeys(void)
|
||||
void APP_TimeSlice10ms(void)
|
||||
{
|
||||
gNextTimeslice = false;
|
||||
|
||||
if (gScheduleVfoSave) {
|
||||
SETTINGS_SaveVfoIndicesFlush();
|
||||
}
|
||||
|
||||
gFlashLightBlinkCounter++;
|
||||
|
||||
#ifdef ENABLE_AM_FIX
|
||||
@@ -2187,7 +2192,7 @@ Skip:
|
||||
}
|
||||
|
||||
if (gRequestSaveChannel > 0) { // TODO: remove the gRequestSaveChannel, why use global variable for that??
|
||||
if ((!bKeyHeld && !bKeyPressed) || UI_MENU_GetCurrentMenuId())
|
||||
if ((!bKeyHeld && !bKeyPressed) || (UI_MENU_GetCurrentMenuId() != 0 && gScreenToDisplay == DISPLAY_MENU))
|
||||
{
|
||||
SETTINGS_SaveChannel(gTxVfo->CHANNEL_SAVE, gEeprom.TX_VFO, gTxVfo, gRequestSaveChannel);
|
||||
|
||||
|
||||
Reference in new issue
Block a user