diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-10-03 14:33:36 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-10-03 14:33:36 +1100 |
| commit | 09f129662e41108fd86255c02623a38e07cbbb27 (patch) | |
| tree | 2bfbfbcd0f3c509e1eae1a11016e6f7c0cb37206 /src/drivers/touchwheel.cpp | |
| parent | 7d5536e2abca61f503ed68521603bd30700a7e5e (diff) | |
| download | tangara-fw-09f129662e41108fd86255c02623a38e07cbbb27.tar.gz | |
Add scroll velocity + more input methods
Diffstat (limited to 'src/drivers/touchwheel.cpp')
| -rw-r--r-- | src/drivers/touchwheel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/touchwheel.cpp b/src/drivers/touchwheel.cpp index aabc5787..cad3433d 100644 --- a/src/drivers/touchwheel.cpp +++ b/src/drivers/touchwheel.cpp @@ -99,10 +99,10 @@ uint8_t TouchWheel::ReadRegister(uint8_t reg) { void TouchWheel::Update() { // Read data from device into member struct - // bool has_data = !gpio_get_level(kIntPin); - // if (!has_data) { - // return; - // } + bool has_data = !gpio_get_level(kIntPin); + if (!has_data) { + return; + } uint8_t status = ReadRegister(Register::DETECTION_STATUS); if (status & 0b10000000) { // Still calibrating. |
