diff options
author | Stefan Kerkmann <[email protected]> | 2022-07-17 21:08:55 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-07-17 21:08:55 +0200 |
commit | a304a9b51ed6e876f25c579f383e2cbf9afb8353 (patch) | |
tree | f8826b4d9014b0869517214f7afbc4cfa9892272 /drivers/sensors/pmw33xx_common.h | |
parent | 4779539543759580b652b719e96566e16cf7132b (diff) | |
download | qmk_firmware-a304a9b51ed6e876f25c579f383e2cbf9afb8353.tar.gz qmk_firmware-a304a9b51ed6e876f25c579f383e2cbf9afb8353.zip |
Use correct angle tune range of +/-127 on PMW33XX (#17708)
...partially reverts 580bcff4f65a3a9ee301de0fd036de7b610c7ee2 as the
datasheet doesn't claim that the angle tuning as limited to +/- 30
degrees.
Diffstat (limited to 'drivers/sensors/pmw33xx_common.h')
-rw-r--r-- | drivers/sensors/pmw33xx_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sensors/pmw33xx_common.h b/drivers/sensors/pmw33xx_common.h index eab8518baa..87e8b34d5c 100644 --- a/drivers/sensors/pmw33xx_common.h +++ b/drivers/sensors/pmw33xx_common.h @@ -59,8 +59,8 @@ _Static_assert(sizeof((pmw33xx_report_t){0}.motion) == 1, "pmw33xx_report_t.moti # define ROTATIONAL_TRANSFORM_ANGLE 0x00 #endif -#if ROTATIONAL_TRANSFORM_ANGLE > 30 || ROTATIONAL_TRANSFORM_ANGLE < (-30) -# error ROTATIONAL_TRANSFORM_ANGLE has to be in the range of +/- 30 for all PMW33XX sensors. +#if ROTATIONAL_TRANSFORM_ANGLE > 127 || ROTATIONAL_TRANSFORM_ANGLE < (-127) +# error ROTATIONAL_TRANSFORM_ANGLE has to be in the range of +/- 127 for all PMW33XX sensors. #endif // Support single and plural spellings |