Minor Changes

This commit is contained in:
tuxphone 2024-07-25 07:12:39 +02:00
parent 721c118fbf
commit 716e51ca85
2 changed files with 8 additions and 4 deletions

View File

@ -205,7 +205,11 @@ bool perhapsSend(Packet_t* p) {
delay(10); delay(10);
MCU_deepsleep(); // wait for TX to complete, will wake on any DIO1 MCU_deepsleep(); // wait for TX to complete, will wake on any DIO1
err = radio.getIrqStatus(); err = radio.getIrqStatus();
(err & RADIOLIB_SX126X_IRQ_TX_DONE) ? MSG("done!\n\r") : MSG("failed. Returned IRQ=%i\n\r", err); if ( err & RADIOLIB_SX126X_IRQ_TX_DONE ) {
MSG("done!\n\r");
} else {
MSG("failed. Returned IRQ=%i\n\r", err);
}
dio1 = false; dio1 = false;
radio.finishTransmit(); radio.finishTransmit();
return ( err & RADIOLIB_SX126X_IRQ_TX_DONE ); return ( err & RADIOLIB_SX126X_IRQ_TX_DONE );
@ -673,7 +677,7 @@ void init_signalize(void) {
void signalizeRX_ON(void){ void signalizeRX_ON(void){
#ifdef CC_SIGNAL_NEOPIXEL #ifdef CC_SIGNAL_NEOPIXEL
pixels.setPixelColor(0, pixels.Color(0, 32, 0)); pixels.setPixelColor(0, pixels.Color(0, 16, 0));
pixels.show(); pixels.show();
#endif #endif
#ifdef CC_SIGNAL_GPIO13 #ifdef CC_SIGNAL_GPIO13
@ -683,7 +687,7 @@ void signalizeRX_ON(void){
void signalizeTX_ON(void){ void signalizeTX_ON(void){
#ifdef CC_SIGNAL_NEOPIXEL #ifdef CC_SIGNAL_NEOPIXEL
pixels.setPixelColor(0, pixels.Color(32, 0, 0)); pixels.setPixelColor(0, pixels.Color(16, 0, 0));
pixels.show(); pixels.show();
#endif #endif
#ifdef CC_SIGNAL_GPIO13 #ifdef CC_SIGNAL_GPIO13