 
     rxDeviceState.rssi = getRadioRssi();
     rxDeviceState.snr = getRadioSnr();
+#endif
 }
     * Use interrupt driven approach only on RX side
     * TX interrupts breaks PPM readout
     */ 
#ifdef DEVICE_MODE_RX
    LoRa.onReceive(onReceive);
#endif
    LoRa.receive();
#endif


}
#endif

volatile bool readPacket = false;
uint8_t myRssi = 0;
uint8_t mySnr = 0;

void loop(void)
{
#ifdef DEVICE_MODE_TX
    if (readPacket) {
        while (LoRa.available()) {
            qspDecodeIncomingFrame(&qsp, LoRa.read(), ppm, &rxDeviceState);
        }
        myRssi = getRadioRssi();
        mySnr = getRadioSnr();
        readPacket = false;
    }
#endif

