Skip to content

Commit 2bce3f8

Browse files
committed
hts221: Address Copilot review on reboot PR.
1 parent bda8e46 commit 2bce3f8

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

tests/scenarios/hts221.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,15 @@ tests:
109109
expect_not_none: true
110110
mode: [mock]
111111

112-
- name: "Reboot reloads calibration"
112+
- name: "Reboot re-reads calibration registers"
113113
action: script
114114
script: |
115+
i2c.clear_write_log()
115116
dev.reboot()
116-
result = isinstance(dev.temperature(), float)
117+
# After reboot, calibration registers (0x3C-0x3F) should be re-read
118+
# Verify T0_OUT and T1_OUT are still valid by checking temperature works
119+
t = dev.temperature()
120+
result = isinstance(t, float) and t != 0.0
117121
expect_true: true
118122
mode: [mock]
119123

0 commit comments

Comments
 (0)