Revision 172:8c8328364b9d tidsense/event.c
b/tidsense/event.c | ||
---|---|---|
45 | 45 |
} |
46 | 46 |
|
47 | 47 |
void event_task_fn(void *data) { |
48 |
// only if we have a master |
|
49 |
if(assoc_get_state() != ASSOC_STATE_ASSOCIATED) return; |
|
50 |
|
|
48 | 51 |
if(!events_with_status(EVENT_PENDING)) return; |
49 | 52 |
|
50 | 53 |
// Don't continue if there are currently events in the air |
51 | 54 |
if(events_with_status(EVENT_TRANSMITTED)) return; |
52 | 55 |
|
56 |
|
|
53 | 57 |
NWK_DataReq_t *req = network_alloc_request(1); |
54 | 58 |
if(!req) return; |
55 | 59 |
|
Also available in: Unified diff