diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-12 14:11:40 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-12 14:18:04 +1000 |
| commit | 86296c187f799eb94fe504e2491d7d991640fadc (patch) | |
| tree | 2127a93f309030f2add2d66e3088377c8e2a771a /src/ui/ui_fsm.cpp | |
| parent | b0d745d02dcfd6ab9b1ad14e9060b39bf9ad7bb8 (diff) | |
| download | tangara-fw-86296c187f799eb94fe504e2491d7d991640fadc.tar.gz | |
Use interrupt-based spi for the display
This solves our "audio stutters while scrolling" problem better! Turns
out the real root cause was the polling SPI driver blocking a whole CPU
during playback.
Diffstat (limited to 'src/ui/ui_fsm.cpp')
| -rw-r--r-- | src/ui/ui_fsm.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/ui/ui_fsm.cpp b/src/ui/ui_fsm.cpp index 70a77c2a..eeaea500 100644 --- a/src/ui/ui_fsm.cpp +++ b/src/ui/ui_fsm.cpp @@ -91,13 +91,6 @@ void UiState::react(const system_fsm::BatteryStateChanged&) { UpdateTopBar(); } -void UiState::react(const audio::PlaybackStarted&) { - vTaskPrioritySet(NULL, 0); -} -void UiState::react(const audio::PlaybackFinished&) { - vTaskPrioritySet(NULL, 10); -} - void UiState::UpdateTopBar() { auto battery_state = sServices->battery().State(); bool has_queue = sServices->track_queue().GetCurrent().has_value(); |
