 
     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");
+
+    // mark buffer as empty
+    buf->len = 0;
 
     return 0;
 }

    {"s",       do_send,    "[node] [type] [data] sends data"},
    {"r",       do_recv,    "[node] returns data from buffer"},
    {"time",    do_time,    "[time] gets/set the time"},
    {"b",       do_beacon,  "shows last received beacon"},
    {"", NULL, ""}
};



// EEPROM address of node id
#define EE_ADDR_ID  0

// number of time division slots
#define NUM_SLOTS   9

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