Uh oh!
There was an error while loading. Please reload this page.
This gets called from ISR currently - #81
Conversation
pingdynasty
commented
Dec 30, 2022
Good find. What do you think about moving the critical lock out of the function instead, like this: |
antisvin
commented
Dec 30, 2022
Well considering that this left saving settings broken for a year or so, I had no choice but debug this. Regarding linked branch, there are some minor concerns:
|
pingdynasty
commented
Jan 4, 2023
Concerns noted. |
pingdynasty
commented
Jan 4, 2023
I cut a release candidate, please help test: https://github.com/RebelTechnology/OpenWare/releases/tag/v22.5.rc4 |
antisvin
commented
Jan 4, 2023
This used to be true with the previous code version, but in that branch the critical section would include the call to The PR ended up with a conflict apparent apparently - https://github.com/RebelTechnology/OpenWare/pull/81/conflicts . I'd say it's worth to try making a call for testing on forum as it resolves issues quite a few people have ran into. |
We store settings from the USB interrupt and current code hangs when disabling interrupts in the old function. AFAICT calling it not from an ISR would be safe too.