Skip to content

Commit f3bf1a0

Browse files
committed
lis2mdl: Add hardware tests for soft_reset and reboot methods.
1 parent 60e08dc commit f3bf1a0

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

tests/scenarios/lis2mdl.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,22 @@ tests:
8282
expect_range: [-10.0, 60.0]
8383
mode: [hardware]
8484

85+
- name: "Soft reset then WHO_AM_I"
86+
action: hardware_script
87+
script: |
88+
dev.soft_reset()
89+
result = dev.read_who_am_i()
90+
expect: 0x40
91+
mode: [hardware]
92+
93+
- name: "Reboot then WHO_AM_I"
94+
action: hardware_script
95+
script: |
96+
dev.reboot()
97+
result = dev.read_who_am_i()
98+
expect: 0x40
99+
mode: [hardware]
100+
85101
- name: "Magnetic field values feel correct"
86102
action: manual
87103
display:

0 commit comments

Comments
 (0)