summaryrefslogtreecommitdiff
path: root/nuttx/drivers/input
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers/input')
-rw-r--r--nuttx/drivers/input/tsc2007.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nuttx/drivers/input/tsc2007.c b/nuttx/drivers/input/tsc2007.c
index 12f3dc9c3..718ec1045 100644
--- a/nuttx/drivers/input/tsc2007.c
+++ b/nuttx/drivers/input/tsc2007.c
@@ -455,8 +455,9 @@ static int tsc2007_transfer(FAR struct tsc2007_dev_s *priv, uint8_t cmd)
return ret;
}
- /* Get the MS 12 bits from the first byte and the remaining LS 4 bits from
- * the second byte.
+ /* Get the MS 8 bits from the first byte and the remaining LS 4 bits from
+ * the second byte. The valid range of data is then from 0 to 4095 with
+ * the LSB unit corresponding to Vref/4096.
*/
ret = (unsigned int)data12[0] << 4 | (unsigned int)data12[1] >> 4;