summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/touchwheel.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/touchwheel.cpp b/src/drivers/touchwheel.cpp
index c617e5df..77b78c23 100644
--- a/src/drivers/touchwheel.cpp
+++ b/src/drivers/touchwheel.cpp
@@ -38,7 +38,10 @@ TouchWheel::TouchWheel() {
};
gpio_config(&int_config);
- WriteRegister(LOW_POWER, 1);
+ WriteRegister(RESET, 1);
+ while (gpio_get_level(kIntPin)) {
+ vTaskDelay(pdMS_TO_TICKS(10));
+ }
// Configure keys 0, 1, and 2 as a wheel.
WriteRegister(SLIDER_OPTIONS, 0b11000000);