Azoteq - improve I2C behaviour while polling. (#24611)

Co-authored-by: Stefan Kerkmann <karlk90@pm.me>
This commit is contained in:
Dasky 2025-01-11 01:29:58 +00:00 committed by GitHub
parent 15bfe6240c
commit 62e98327d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 32 deletions

View file

@ -173,7 +173,8 @@ typedef struct {
# define AZOTEQ_IQS5XX_REPORT_RATE 10
#endif
#if !defined(POINTING_DEVICE_TASK_THROTTLE_MS) && !defined(POINTING_DEVICE_MOTION_PIN)
# define POINTING_DEVICE_TASK_THROTTLE_MS AZOTEQ_IQS5XX_REPORT_RATE
// Polling the Azoteq isn't recommended, ensuring we only poll after the report is ready stops any unexpected NACKs
# define POINTING_DEVICE_TASK_THROTTLE_MS AZOTEQ_IQS5XX_REPORT_RATE + 1
#endif
const pointing_device_driver_t azoteq_iqs5xx_pointing_device_driver;