add optional LED_LORA to indicate LoRa TX (#10465)

This commit is contained in:
Jonathan Bennett
2026-05-16 22:11:49 -05:00
committed by GitHub
co-authored by GitHub
parent 4a1ff18f57
commit 767a748188
+6
View File
@@ -424,6 +424,9 @@ void RadioLibInterface::completeSending()
// that can take a long time
auto p = sendingPacket;
sendingPacket = NULL;
#ifdef LED_LORA
digitalWrite(LED_LORA, LED_STATE_OFF);
#endif
if (p) {
// Packet has been sent, count it toward our TX airtime utilization.
@@ -612,6 +615,9 @@ bool RadioLibInterface::startSend(meshtastic_MeshPacket *txp)
enableInterrupt(isrTxLevel0);
lastTxStart = millis();
printPacket("Started Tx", txp);
#ifdef LED_LORA
digitalWrite(LED_LORA, LED_STATE_ON);
#endif
}
return res == RADIOLIB_ERR_NONE;