Skip to content

Commit ae3ae01

Browse files
committed
tests: Use driver read_temperature_c() for LIS2MDL in comparison test.
1 parent 0b050db commit ae3ae01

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/scenarios/board_temperature_comparison.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ tests:
4848
temps['WSEN-PADS'] = pads.temperature()
4949
5050
# LIS2MDL (auxiliary, offset not guaranteed by datasheet)
51-
# Add 25°C empirical offset (raw value has no guaranteed zero point)
5251
from lis2mdl.device import LIS2MDL
5352
mag = LIS2MDL(i2c)
54-
temps['LIS2MDL'] = 25.0 + mag.read_temperature_raw() / 8.0
53+
temps['LIS2MDL'] = mag.read_temperature_c()
5554
5655
# Print comparison table
5756
print('--- Temperature Comparison ---')

0 commit comments

Comments
 (0)