From 86296c187f799eb94fe504e2491d7d991640fadc Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 12 Sep 2023 14:11:40 +1000 Subject: 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. --- src/ui/ui_fsm.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/ui/ui_fsm.cpp') 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(); -- cgit v1.2.3