Skip to content

Commit 6049cb5

Browse files
committed
Do not immediate store main view change to prevent eeprom wear.
1 parent d8d95f5 commit 6049cb5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

radio/src/gui/128x64/view_main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,12 +358,12 @@ void menuMainView(event_t event)
358358
case EVT_KEY_NEXT_VIEW:
359359
// TODO try to split those 2 cases on 9X
360360
g_eeGeneral.view = (event == EVT_KEY_PREVIOUS_VIEW ? (view_base == VIEW_COUNT - 1 ? 0 : view_base + 1) : (view_base == 0 ? VIEW_COUNT - 1 : view_base - 1));
361-
storageDirty(EE_GENERAL);
361+
// storageDirty(EE_GENERAL); // do not immediate store view change to prevent eeprom wear
362362
break;
363363
#else
364364
case EVT_KEY_NEXT_VIEW:
365365
g_eeGeneral.view = (view_base == 0 ? VIEW_COUNT - 1 : view_base - 1);
366-
storageDirty(EE_GENERAL);
366+
// storageDirty(EE_GENERAL); // do not immediate store view change to prevent eeprom wear
367367
break;
368368
#endif
369369

0 commit comments

Comments
 (0)