summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/display.cpp2
-rw-r--r--src/tasks/tasks.cpp3
-rw-r--r--src/ui/include/ui_fsm.hpp4
-rw-r--r--src/ui/ui_fsm.cpp7
4 files changed, 4 insertions, 12 deletions
diff --git a/src/drivers/display.cpp b/src/drivers/display.cpp
index e261402d..a0ace021 100644
--- a/src/drivers/display.cpp
+++ b/src/drivers/display.cpp
@@ -283,7 +283,7 @@ void Display::SendTransaction(TransactionType type,
gpio_set_level(kDisplayDr, type);
// TODO(jacqueline): Handle these errors.
- esp_err_t ret = spi_device_polling_transmit(handle_, transaction_);
+ esp_err_t ret = spi_device_transmit(handle_, transaction_);
ESP_ERROR_CHECK(ret);
}
diff --git a/src/tasks/tasks.cpp b/src/tasks/tasks.cpp
index ae7b9eb2..fccdfd8b 100644
--- a/src/tasks/tasks.cpp
+++ b/src/tasks/tasks.cpp
@@ -114,8 +114,7 @@ auto Priority<Type::kAudioConverter>() -> UBaseType_t {
}
// After audio issues, UI jank is the most noticeable kind of scheduling-induced
// slowness that the user is likely to notice or care about. Therefore we place
-// this task directly below audio in terms of priority. Note that during audio
-// playback, this priority will be downgraded.
+// this task directly below audio in terms of priority.
template <>
auto Priority<Type::kUi>() -> UBaseType_t {
return 10;
diff --git a/src/ui/include/ui_fsm.hpp b/src/ui/include/ui_fsm.hpp
index de97354e..b8d2b1a0 100644
--- a/src/ui/include/ui_fsm.hpp
+++ b/src/ui/include/ui_fsm.hpp
@@ -49,8 +49,8 @@ class UiState : public tinyfsm::Fsm<UiState> {
void react(const tinyfsm::Event& ev) {}
virtual void react(const system_fsm::BatteryStateChanged&);
- virtual void react(const audio::PlaybackStarted&);
- virtual void react(const audio::PlaybackFinished&);
+ virtual void react(const audio::PlaybackStarted&){};
+ virtual void react(const audio::PlaybackFinished&){};
virtual void react(const audio::PlaybackUpdate&) {}
virtual void react(const audio::QueueUpdate&) {}
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();