fix: restore verified XIAO RS485 pin direction
This commit is contained in:
@@ -7,7 +7,7 @@ def source(name): return (NODE / name).read_text()
|
||||
|
||||
def test_wiring_matches_assembly():
|
||||
config = source("sensor_node_config.h")
|
||||
expected = {"RS485_DE_PIN":"D2", "RS485_RX_PIN":"D4", "RS485_TX_PIN":"D5",
|
||||
expected = {"RS485_DE_PIN":"D2", "RS485_TX_PIN":"D4", "RS485_RX_PIN":"D5",
|
||||
"BNO086_SDA_PIN":"D7", "BNO086_SCL_PIN":"D8", "GPS_RX_PIN":"D9", "GPS_TX_PIN":"D10"}
|
||||
for name, pin in expected.items(): assert re.search(rf"#define\s+{name}\s+{pin}\b", config)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user