Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Power up in favorites when last mode was favorites #37

Open
pitts-mo opened this issue Oct 8, 2018 · 2 comments
Open

Power up in favorites when last mode was favorites #37

pitts-mo opened this issue Oct 8, 2018 · 2 comments

Comments

@pitts-mo
Copy link

pitts-mo commented Oct 8, 2018

I am requesting this feature after finding this desirable when I attended an event utilizing with a channel set across multiple vendor channel sets.

@piodabro
Copy link
Owner

I think that the best solution is to save this setting to eeprom when someone enter Search or Fav screen and default with that on startup. Entering other screens won't affect "startup screen" setting.

@pitts-mo
Copy link
Author

I finally had a few minutes to look into this (my local yearly event is coming up). As a temporary fix I have commented PRO58/Src/main.cpp line 185 and added a new line below it as shown.

// StateMachine::switchState(StateMachine::State::SEARCH);
StateMachine::switchState(StateMachine::State::FAVOURITES);

When more time allows I hope to poke at:
-Add allocation of eeprom space for variable type bit or ???
-Add distinct updates to this new variable on entry to SEARCH and FAVOURITES.
-Add checking into the above section of PRO58/Src/main.cpp to auto load state defined by new variable value.
-Add fail-safe to pick a state if this eeprom value does not match expected value (corrupted).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants