mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Correct logging of RAW lines
This commit is contained in:
parent
712d3b1021
commit
b670a7a709
5 changed files with 7 additions and 20 deletions
|
|
@ -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) { }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue