                 break;
 
             case EV_TXCOMPLETE:
-                Serial.print(F(": ch "));
-                Serial.print(e.txChnl);
+                printTxChnl(e.txChnl);
                 printRps(e.rps);
-                Serial.print(F(" txrxflags 0x")); Serial.print(e.txrxFlags, HEX);
-                if (e.txrxFlags & TXRX_ACK)
-                    Serial.print(F("; Received ack"));
+                printTxrxflags(e.txrxFlags);
                 break;
             case EV_LOST_TSYNC:
                 break;

    }
#endif // LMIC_ENABLE_event_logging

uint8_t lastTxChannel;
bool lastTxStart;


            */
            case EV_JOIN_FAILED:
                // print out rx info
                printFreq(e.freq);
                printRps(e.rps);
                printOpmode(e.opmode);
                printf(" irqLevel %u", hal_getIrqLevel());

                printAllRegisters();
                break;

            case EV_REJOIN_FAILED:
