]> Pileus Git - ~andy/csm213a-hw/commitdiff
Fix bug in event generation
authorAndy Spencer <andy753421@gmail.com>
Sat, 15 Mar 2014 08:10:36 +0000 (08:10 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 15 Mar 2014 08:10:38 +0000 (08:10 +0000)
hw2/main.cpp

index d03b3f312cc3aa843290485b338f7f333bf65859..8f6530c2941e56d8696a0670c6f8aad176d17f38 100644 (file)
@@ -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)