From e8a972cc7f85eb2aafdb826bca773304ca414006 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 8 Sep 2023 15:15:10 +1000 Subject: [PATCH] Just wait for touchwheel reboot instead of being clever --- src/drivers/touchwheel.cpp | 4 +--- 1 file changed, 1 insertion(+), 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);