Refactor debug logging across bridge implementations

This commit is contained in:
João Brázio 2025-10-06 12:57:04 +01:00
parent 9b4d93d112
commit fb46e5cc8a
No known key found for this signature in database
GPG key ID: 56A1490716A324DD
7 changed files with 48 additions and 70 deletions

View file

@ -28,6 +28,12 @@
#define MESH_DEBUG_PRINTLN(...) {}
#endif
#if BRIDGE_DEBUG && ARDUINO
#define BRIDGE_DEBUG_PRINTLN(F, ...) Serial.printf("%s BRIDGE: " F, getLogDateTime(), ##__VA_ARGS__)
#else
#define BRIDGE_DEBUG_PRINTLN(...) {}
#endif
namespace mesh {
#define BD_STARTUP_NORMAL 0 // getStartupReason() codes