Skip to content

Commit 50d5493

Browse files
committed
Include RoomTemp_Offset in temperature calculation
1 parent 4d5f843 commit 50d5493

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ICM_20948.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ float ICM_20948::temp(void)
122122

123123
float ICM_20948::getTempC(int16_t val)
124124
{
125-
return (((float)val) / 333.87) + 21;
125+
return (((float)val - 21) / 333.87) + 21;
126126
}
127127

128128
const char *ICM_20948::statusString(ICM_20948_Status_e stat)

0 commit comments

Comments
 (0)