Fix bridge runtime harness extraction around packet logging guards
This commit is contained in:
1 parent
3db4582bbb
commit
4bc6535f4d
3 files changed
+9
-4
No files matched your search
@@ -35,7 +35,8 @@ class ESPNowRuntimeTests(unittest.TestCase):
|
||||
for name in ("logRx", "logTx"):
|
||||
start = implementation.index("void MyMesh::" + name + "(")
|
||||
start = implementation.index("#ifdef WITH_MQTT_BRIDGE\n", start)
|
||||
end = implementation.index(" if (_logging)", start)
|
||||
# Keep the complete bridge guards, stopping before file logging's guard.
|
||||
end = implementation.index("#if MESH_ENABLE_PACKET_FILE_LOGGING\n", start)
|
||||
routing[name] = implementation[start:end]
|
||||
service_start = implementation.index("#if defined(WITH_ESPNOW_BRIDGE)",
|
||||
implementation.index("MyMesh::servicePostMeshLoop()"))
|
||||
|
||||
Reference in new issue
Block a user