This gets called from ISR currently#81
This gets called from ISR currently#81antisvin wants to merge 1 commit intoRebelTechnology:developfrom
Conversation
|
Good find. What do you think about moving the critical lock out of the function instead, like this: |
|
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:
|
|
Concerns noted. |
|
I cut a release candidate, please help test: https://github.com/RebelTechnology/OpenWare/releases/tag/v22.5.rc4 |
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.