body.device = serial_device_id;
body.event = event;
- body.world = ltime;
- body.local = wtime;
+ body.world = wtime;
+ body.local = ltime;
// Transmit message to BBB
sirq_write(port, &head, sizeof(head));
//sirq_debug(sirq_mbed);
+ serial_send_event(sirq_bbb, 1, local);
+
#ifdef VERBOSE
sirq_printf("background - %6u.%02u -> %u.%02u\r\n",
(uint32_t)(local / NSEC_PER_SEC),