mirror of
https://github.com/meshtastic/firmware.git
synced 2025-04-27 18:31:37 +00:00
Add debug output
This commit is contained in:
parent
61598c5942
commit
183ec2124f
@ -386,6 +386,7 @@ ErrorCode RadioLibInterface::send(MeshPacket *p)
|
|||||||
|
|
||||||
int res = iface->startTransmit(radiobuf, numbytes);
|
int res = iface->startTransmit(radiobuf, numbytes);
|
||||||
if (res != RADIOLIB_ERR_NONE) {
|
if (res != RADIOLIB_ERR_NONE) {
|
||||||
|
DEBUG_MSG("startTransmit failed, error=%d\n", res);
|
||||||
RECORD_CRITICALERROR(CriticalErrorCode_RADIO_SPI_BUG);
|
RECORD_CRITICALERROR(CriticalErrorCode_RADIO_SPI_BUG);
|
||||||
|
|
||||||
// This send failed, but make sure to 'complete' it properly
|
// This send failed, but make sure to 'complete' it properly
|
||||||
|
Loading…
Reference in New Issue
Block a user