summaryrefslogtreecommitdiff
path: root/nuttx/drivers/input/stmpe11_temp.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/drivers/input/stmpe11_temp.c')
-rw-r--r--nuttx/drivers/input/stmpe11_temp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/drivers/input/stmpe11_temp.c b/nuttx/drivers/input/stmpe11_temp.c
index 8c7406761..b3eb8f6c5 100644
--- a/nuttx/drivers/input/stmpe11_temp.c
+++ b/nuttx/drivers/input/stmpe11_temp.c
@@ -132,12 +132,12 @@ uint16_t stmpe11_tempread(STMPE11_HANDLE handle)
stmpe11_putreg8(priv, STMPE11_TEMP_CTRL, (TEMP_CTRL_ACQ|TEMP_CTRL_ENABLE));
- /* Read the tempreature */
+ /* Read the temperature */
temp1 = stmpe11_getreg8(priv, STMPE11_SYS_CTRL2);
temp2 = stmpe11_getreg8(priv, STMPE11_SYS_CTRL2+1);
- /* Scale the tempreature */
+ /* Scale the temperature (where Vio is assumed to be .33) */
temp = ((uint32_t)(temp1 & 3) << 8) | temp2;
temp = (uint32_t)((33 * temp * 100) / 751);