mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 07:43:33 +08:00
Mostly cosmetic, partial fixes for STM3240G-EVAL LCD
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4705 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user