Skip to content

Commit 44c27bd

Browse files
committed
Store obs config after creating a fresh default config.
This supports the situation where you just want to get a new OBS into street mode without any configuration.
1 parent 8eda94d commit 44c27bd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/OpenBikeSensorFirmware.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,7 @@ bool loadConfig(ObsConfig &cfg) {
591591
if (!cfg.loadConfig()) {
592592
displayTest->showTextOnGrid(2, displayTest->currentLine(), "Config...RESET");
593593
isNew = true;
594+
cfg.saveConfig(); // save the new config - next boot will allow obs mode
594595
}
595596

596597
cfg.printConfig();

0 commit comments

Comments
 (0)