firmware: mirror sensor telemetry to USB

This commit is contained in:
2026-07-17 02:01:53 -06:00
parent a1a2f399d1
commit 07559da6c0
4 changed files with 10 additions and 1 deletions
+2
View File
@@ -15,6 +15,8 @@ def test_transport_contract():
text = source("rs485_transport.cpp")
for token in ['doc["type"] = "sensor_status"', 'doc["schema_version"]', 'createNestedObject("imu")', 'createNestedObject("gps")', "serial.write('\\n')", "serial.flush()"]:
assert token in text
assert "USB_TELEMETRY_ENABLED" in text
assert "serializeJson(doc, Serial)" in text
def test_loop_is_non_blocking():
loop = source("xiao-esp32c6-sensor-node.ino").split("void loop()", 1)[1]