Commit a01d16cb authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

dev/ad7888: don't omit the first channel fix

parent 2cb6383f
......@@ -69,7 +69,7 @@ void ad7888_start_conversion( struct ad7888_device *dev, uint16_t channel_mask )
dev->channel_mask = channel_mask;
dev->channel_valid = 0;
dev->current_ch = 0;
dev->current_ch = -1;
dev->last_poll_tics = timer_get_tics();
int ch = first_bit_set_after( dev->channel_mask, dev->current_ch );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment