X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=blobdiff_plain;f=src%2Fcore%2Fao_data.h;h=6fdd19cb9b7ca88cc72d1b6fd52073cd3ac032a2;hp=86acd48fa8c94fe92e076bf7aa15da771c219910;hb=defd5d0784a754be30e3295067fbc85a108ad172;hpb=5caf56e89678637c1afa79700a2fa09aa67dea9b 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