summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2023-09-08 15:15:10 +1000
committerjacqueline <me@jacqueline.id.au>2023-09-08 15:15:10 +1000
commite8a972cc7f85eb2aafdb826bca773304ca414006 (patch)
tree25cbe7e2895300c3c4a10a2bee63f03d6387df93 /src
parent6b9fb9edace1b0441eb8d5e9ee8e5c6ec1287554 (diff)
downloadtangara-fw-e8a972cc7f85eb2aafdb826bca773304ca414006.tar.gz
Just wait for touchwheel reboot instead of being clever
Diffstat (limited to 'src')
-rw-r--r--src/drivers/touchwheel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/drivers/touchwheel.cpp b/src/drivers/touchwheel.cpp
index 6d624b0f..aabc5787 100644
--- a/src/drivers/touchwheel.cpp
+++ b/src/drivers/touchwheel.cpp
@@ -39,9 +39,7 @@ TouchWheel::TouchWheel() {
gpio_config(&int_config);
WriteRegister(RESET, 1);
- while (gpio_get_level(kIntPin)) {
- vTaskDelay(pdMS_TO_TICKS(10));
- }
+ vTaskDelay(pdMS_TO_TICKS(300));
// Configure keys 0, 1, and 2 as a wheel.
WriteRegister(SLIDER_OPTIONS, 0b11000000);