add optional LED_LORA to indicate LoRa TX (#10465)
This commit is contained in:
co-authored by
GitHub
parent
4a1ff18f57
commit
767a748188
@@ -424,6 +424,9 @@ void RadioLibInterface::completeSending()
|
|||||||
// that can take a long time
|
// that can take a long time
|
||||||
auto p = sendingPacket;
|
auto p = sendingPacket;
|
||||||
sendingPacket = NULL;
|
sendingPacket = NULL;
|
||||||
|
#ifdef LED_LORA
|
||||||
|
digitalWrite(LED_LORA, LED_STATE_OFF);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (p) {
|
if (p) {
|
||||||
// Packet has been sent, count it toward our TX airtime utilization.
|
// Packet has been sent, count it toward our TX airtime utilization.
|
||||||
@@ -612,6 +615,9 @@ bool RadioLibInterface::startSend(meshtastic_MeshPacket *txp)
|
|||||||
enableInterrupt(isrTxLevel0);
|
enableInterrupt(isrTxLevel0);
|
||||||
lastTxStart = millis();
|
lastTxStart = millis();
|
||||||
printPacket("Started Tx", txp);
|
printPacket("Started Tx", txp);
|
||||||
|
#ifdef LED_LORA
|
||||||
|
digitalWrite(LED_LORA, LED_STATE_ON);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return res == RADIOLIB_ERR_NONE;
|
return res == RADIOLIB_ERR_NONE;
|
||||||
|
|||||||
Reference in New Issue
Block a user