Skip to content

Commit ccbe26d

Browse files
author
Owen
authored
Merge pull request #18 from adamgarbo/bugFix
2 parents 4d5f843 + 50d5493 commit ccbe26d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ICM_20948.cpp

+1-1
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)