     if (v < 16)
         Serial.print('0');
     Serial.print(v, HEX);
+}
+
+void printHex4(unsigned v) {
+    printHex2(v >> 8u);
+    printHex2(v);
 }
 
 void printFreq(u4_t freq) {

}

void eventPrint(cEventQueue::eventnode_t &e);

void eventPrintAll(void) {
    while (eventPrintOne())


void loop() {
    os_runloop_once();
    if ((LMIC.opmode & OP_TXRXPEND) == 0 &&
        !os_queryTimeCriticalJobs(ms2osticks(1000))) {
           eventPrintOne();
    }
}

// there's a problem with running 2.5 of the MCCI STM32 BSPs;
