Correct logging of RAW lines

This commit is contained in:
Sybren A. Stüvel 2026-03-14 23:34:36 +01:00
parent 712d3b1021
commit b670a7a709
5 changed files with 7 additions and 20 deletions

View file

@ -185,7 +185,13 @@ protected:
virtual DispatcherAction onRecvPacket(Packet* pkt) = 0;
virtual void logRxRaw(float snr, float rssi, const uint8_t raw[], int len) { } // custom hook
virtual void logRxRaw(float snr, float rssi, const uint8_t raw[], int len) { // custom hook
#if MESH_PACKET_LOGGING
_packet_log.printf("%s RAW: ", getLogDateTime());
mesh::Utils::printHex(_packet_log, raw, len);
_packet_log.print("\n");
#endif
}
virtual void logRx(Packet* packet, int len, float score) { } // hooks for custom logging
virtual void logTx(Packet* packet, int len) { }