summaryrefslogtreecommitdiff
path: root/src/drivers
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-09-12 14:11:40 +1000
committerjacqueline <me@jacqueline.id.au>2023-09-12 14:18:04 +1000
commit86296c187f799eb94fe504e2491d7d991640fadc (patch)
tree2127a93f309030f2add2d66e3088377c8e2a771a /src/drivers
parentb0d745d02dcfd6ab9b1ad14e9060b39bf9ad7bb8 (diff)
downloadtangara-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/drivers')
-rw-r--r--src/drivers/display.cpp2
1 files changed, 1 insertions, 1 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);
}