We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b5d148 commit 35e3b1aCopy full SHA for 35e3b1a
1 file changed
tests/scenarios/board_temperature_comparison.yaml
@@ -48,9 +48,10 @@ tests:
48
temps['WSEN-PADS'] = pads.temperature()
49
50
# LIS2MDL (auxiliary, offset not guaranteed by datasheet)
51
+ # Add 25°C empirical offset (raw value has no guaranteed zero point)
52
from lis2mdl.device import LIS2MDL
53
mag = LIS2MDL(i2c)
- temps['LIS2MDL'] = mag.read_temperature_c()
54
+ temps['LIS2MDL'] = 25.0 + mag.read_temperature_raw() / 8.0
55
56
# Print comparison table
57
print('--- Temperature Comparison ---')
0 commit comments