Replies: 1 comment 9 replies
-
It allows processing of some UI rendering even while inside the card routine, since the card routine also does input event handling. See the views, such as DelugeFirmware/src/deluge/gui/views/audio_clip_view.cpp Lines 781 to 795 in be28b94 The SD card routine is run on such a regular basis (and is apparently long enough cycle-wise) that not handling user input events during it would potentially impact responsiveness. Solutions for this would be splitting up the larger monolithic sdCardRoutine into smaller tasks that can have input event handling done in between them, and maybe implementing a better event queue system. I'm not sure how we currently handle user events (whether queued or immediate). |
Beta Was this translation helpful? Give feedback.
-
Does anyone know the purpose of the mysterious
allowSomeUserActionsEvenWhenInCardRoutine
? In audio_file_manager.cpp:By default UI input is ignored while in
sdRoutineLock
but there is a focused effort in the code to have the vertical encoder still be interpreted duringsdRoutineLock
ifallowSomeUserActionsEvenWhenInCardRoutine
is true.This makes it currently impossible to simplify the UI code by handling
sdRoutineLock
in a central place. I'd like to understand what exactly is happening here so I can create a clean implementation for this exception - or remove it if it's no longer used. Thanks 🙏🏻Beta Was this translation helpful? Give feedback.
All reactions