diff options
author | Brian Cully <bjc@kublai.com> | 2022-10-27 15:46:06 -0400 |
---|---|---|
committer | Brian Cully <bjc@kublai.com> | 2022-10-27 15:46:06 -0400 |
commit | 8ae65e862b886e6151ee4424d0fe1d16f7b46830 (patch) | |
tree | 41a9021f65ac18f286d0633bf1420271ed6d5981 | |
parent | 35cfff068047de01aab1213324fb423092c4289f (diff) | |
download | luchie-8ae65e862b886e6151ee4424d0fe1d16f7b46830.tar.gz luchie-8ae65e862b886e6151ee4424d0fe1d16f7b46830.zip |
cirque: fix off-by-one error in max x/y coords.
-rw-r--r-- | src/cirque.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cirque.rs b/src/cirque.rs index 69f9903..53c9dde 100644 --- a/src/cirque.rs +++ b/src/cirque.rs @@ -12,8 +12,8 @@ use stm32f1xx_hal::rcc::Clocks; const I2C_ADDR: u8 = 0x2a; // the maximum reportable units -const MAX_X: u16 = 2047; -const MAX_Y: u16 = 1535; +const MAX_X: u16 = 2048; +const MAX_Y: u16 = 1536; // the lowest reachable units const CLAMP_X_MIN: u16 = 127; |