 static int do_beacon(int argc, char *argv[])
 {
     print("%s 00 %lu %d %d %d\n", argv[0], beacon.time, beacon.frame, beacon.slot_offs, beacon.slot_size);
+}
+
+static int do_status(int argc, char *argv[])
+{
+    print("%s ", argv[0]);
+    for (int i = 0; i < NUM_SLOTS; i++) {
+        print("%c", buffers[i].len > 0 ? '1' : '0');
+    }
+    print("\n");
 }
 
 static const cmd_t commands[] = {


    uint8_t dest = buf->data[0];
    uint8_t type = buf->data[2];

    print("%s 00 %02X %02X ", argv[0], dest, type);
    printhex(&buf->data[3], buf->len - 3);
    print("\n");

    return 0;
}


// EEPROM address of node id
#define EE_ADDR_ID  0

// number of time division slots
#define NUM_SLOTS   9

static void print(char *fmt, ...)
{
