last_station

This commit is contained in:
e2002
2022-12-27 13:03:47 +03:00
parent fa2d1a33c9
commit bc10a6c0de
3 changed files with 9 additions and 0 deletions

View File

@@ -500,10 +500,12 @@ void onBtnClick(int id) {
}
case EVT_BTNMODE: {
if(SDC_CS==255) break;
if(config.store.play_mode==PM_SDCARD) config.store.lastStation = config.backupLastStation;
config.store.play_mode++;
if(config.store.play_mode > MAX_PLAY_MODE){
config.store.play_mode=0;
}
config.save();
ESP.restart();
break;