-
Notifications
You must be signed in to change notification settings - Fork 70
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
eeprom written to twice when manual scanning #117
Comments
My firmware is more than 200 commits ahead of egzumer v0.22, so there are a lot of changes. For example, about the scan, since v2.4, a LONG press on MENU key, in * SCAN mode (List I or List II) temporarily exclude a memory channel (not working with * SCAN ALL). This may be the reason for this change... |
Oops sorry about that, false alert. I looked through the code and it seems it may have been present in egzumer's fw too. I tried my hand at fixing it (just simple removal of the bKeyHeld parts because it doesn't seem too reliable, and the code elsewhere still handles it correctly when button is released. I don't know what I'm doing but it
|
Oops. After a few hours of testing, it looks like I broke some things... |
And all the things I broke (direct input of VFO/FM channels don't save until next keypress, VFO frequency no longer changes on single keypress, VFO direct input does nothing) are fixed... at the expense of more bytes used 🫠! |
And after many more hours of testing, it seems like nothing broke this time! |
I noticed I only fixed the memory modes for VFOs and FM. Holding down up/down for frequency scanning still does a double eeprom write. I think I give up 🫠 |
Finally! Found the last problem bit: uv-k5-firmware-custom/app/app.c Line 2028 in 15ff3d1
change to if (!bKeyHeld && !bKeyPressed) { 🎉 ... along with a few more changes to address new bugs (menu exiting after grequestsavechannel stuff) |
There is now this test in your code |
Ok, thank you. |
When scrolling/scanning through channels/frequencies, the eeprom is written to upon UP/DOWN buttonpress (when it initially switches to another channel/frequency), then it scans as normal while holding down the button. Then upon button release when it lands on the final channel/frequency, the eeprom is written to again. This happens on both memory mode and vfo, as well as FM broadcast mode. This bug doesn't exist in egzumer's firmware (I think), so maybe something was changed/removed/broken with
bKeyHeld
.The text was updated successfully, but these errors were encountered: