From 8ae65e862b886e6151ee4424d0fe1d16f7b46830 Mon Sep 17 00:00:00 2001 From: Brian Cully Date: Thu, 27 Oct 2022 15:46:06 -0400 Subject: cirque: fix off-by-one error in max x/y coords. --- src/cirque.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3