Skip to content

Commit

Permalink
fixed settings button, make it return to normal grid view after cycli…
Browse files Browse the repository at this point in the history
…ng through all the settings
  • Loading branch information
barry-ha committed Jan 22, 2024
1 parent 4012d9b commit 74ea9c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Griduino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ BarometerModel baroModel; // create instance of the model

// alias names for all views - MUST be in same order as "viewTable" array below, alphabetical by class name
enum VIEW_INDEX {
ALTIMETER_VIEW = 0, // altimeter
ALTIMETER_VIEW = 0, // altimeter
BARO_VIEW, // barometer graph
CFG_AUDIO_TYPE, // audio output Morse/speech
CFG_CROSSING, // announce grid crossing 4/6 digit boundaries
Expand All @@ -333,7 +333,7 @@ enum VIEW_INDEX {
CFG_ROTATION, // screen rotation
CFG_UNITS, // english/metric
EVENTS_VIEW, // Groundhog Day, Halloween, or other day-counting screen
GRID_VIEW,
GRID_VIEW, //
GRID_CROSSINGS_VIEW, // log of time in each grid
HELP_VIEW, // hints at startup
SAT_COUNT_VIEW, // number of satellites acquired
Expand Down Expand Up @@ -440,7 +440,7 @@ void selectNewView(int cmd) {
#if defined(ARDUINO_ADAFRUIT_FEATHER_RP2040)
case CFG_ROTATION: nextView = CFG_REBOOT; break;
#else
case CFG_ROTATION: nextView = CFG_VOLUME; break;
case CFG_ROTATION: nextView = GRID_VIEW; break; // at end of settings views, return to normal view
#endif
case CFG_REBOOT: nextView = CFG_VOLUME; break;
// none of above: we must be showing some normal user view, so go to the first settings view
Expand Down

0 comments on commit 74ea9c6

Please sign in to comment.