diff options
author | Keith Packard <keithp@keithp.com> | 2012-10-18 16:49:28 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-10-18 16:49:28 -0700 |
commit | 7f664da148ae15d46d179d8ecede6fc0bc710ffb (patch) | |
tree | bd679edad131beb3fb00640ad7805b54c74ef289 /src/core/ao_data.h | |
parent | 3aba5eb5a75dff3e7c8778561c533903eacb110a (diff) | |
parent | 23b0c2fe95dbfaa4a8ce603b56b75d12d2c17d8c (diff) |
Diffstat (limited to 'src/core/ao_data.h')
-rw-r--r-- | src/core/ao_data.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/core/ao_data.h b/src/core/ao_data.h index 86acd48f..6fdd19cb 100644 --- a/src/core/ao_data.h +++ b/src/core/ao_data.h @@ -90,14 +90,7 @@ extern volatile __data uint8_t ao_data_count; /* * Mark a section of data as ready, check for data complete */ -#define AO_DATA_PRESENT(bit) do { \ - if ((ao_data_present |= (bit)) == AO_DATA_ALL) { \ - ao_data_ring[ao_data_head].tick = ao_tick_count; \ - ao_data_head = ao_data_ring_next(ao_data_head); \ - ao_data_present = 0; \ - ao_wakeup((void *) &ao_data_head); \ - } \ - } while (0); +#define AO_DATA_PRESENT(bit) (ao_data_present |= (bit)) /* * Wait until it is time to write a sensor sample; this is |