Skip to content

Commit aee2411

Browse files
committed
tests: Make I2C scan pass without battery connected.
1 parent 43f0a58 commit aee2411

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/scenarios/board_i2c_scan.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ tests:
1515
found = i2c.scan()
1616
# Expected I2C addresses on STeaMi board (7-bit):
1717
# 0x1E=LIS2MDL, 0x20=MCP23009E, 0x29=VL53L1X, 0x39=APDS9960
18-
# 0x3B=STM32F103CB, 0x55=BQ27441, 0x5D=WSEN-PADS
18+
# 0x3B=STM32F103CB, 0x5D=WSEN-PADS
1919
# 0x5F=HTS221/WSEN-HIDS, 0x6B=ISM330DL
20-
expected = [0x1E, 0x20, 0x29, 0x39, 0x3B, 0x55, 0x5D, 0x5F, 0x6B]
20+
# Note: 0x55=BQ27441 excluded (only present when battery connected)
21+
expected = [0x1E, 0x20, 0x29, 0x39, 0x3B, 0x5D, 0x5F, 0x6B]
2122
missing = sorted([hex(a) for a in expected if a not in found])
2223
result = missing
2324
expect: []

0 commit comments

Comments
 (0)