From: Andy Spencer Date: Sat, 15 Mar 2014 08:10:36 +0000 (+0000) Subject: Fix bug in event generation X-Git-Url: http://pileus.org/git/?p=~andy%2Fcsm213a-hw;a=commitdiff_plain;h=23b7c6c039f8cddc20612484097b33c45769519b Fix bug in event generation --- diff --git a/hw2/main.cpp b/hw2/main.cpp index d03b3f3..8f6530c 100644 --- a/hw2/main.cpp +++ b/hw2/main.cpp @@ -114,10 +114,11 @@ void task_events(uint64_t local, uint64_t world) sirq_printf("event received - xmt\r\n"); #endif - if (tdma_stamp(tdma_evt, &event)) + if (tdma_stamp(tdma_evt, &event)) { comm_send_event(0, event); - tdma_stop(tdma_evt, 0); - tdma_start(tdma_evt); + tdma_stop(tdma_evt, 0); + tdma_start(tdma_evt); + } } void task_sync(uint64_t local, uint64_t world)