diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-09-08 15:15:10 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-09-08 15:15:10 +1000 |
| commit | e8a972cc7f85eb2aafdb826bca773304ca414006 (patch) | |
| tree | 25cbe7e2895300c3c4a10a2bee63f03d6387df93 /src | |
| parent | 6b9fb9edace1b0441eb8d5e9ee8e5c6ec1287554 (diff) | |
| download | tangara-fw-e8a972cc7f85eb2aafdb826bca773304ca414006.tar.gz | |
Just wait for touchwheel reboot instead of being clever
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/touchwheel.cpp | 4 |
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); |
