We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd5fb74 commit 434fd37Copy full SHA for 434fd37
src/AdvancedADC.cpp
@@ -238,8 +238,8 @@ void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef *adc) {
238
// NOTE: CT bit is inverted, to get the DMA buffer that's Not currently in use.
239
size_t ct = ! hal_dma_get_ct(&descr->dma);
240
241
- // Timestamp the buffer. TODO: Should move to timer IRQ.
242
- descr->dmabuf[ct]->timestamp(HAL_GetTick());
+ // Timestamp the buffer.
+ descr->dmabuf[ct]->timestamp(us_ticker_read());
243
244
if (descr->pool->writable()) {
245
// Make sure any cached data is discarded.
0 commit comments