]> the.earth.li Git - temper-clone.git/commit - main.c
Add w1_read_bit() to improve waiting for result
authorJonathan McDowell <noodles@earth.li>
Thu, 10 May 2018 07:03:19 +0000 (08:03 +0100)
committerJonathan McDowell <noodles@earth.li>
Thu, 10 May 2018 07:03:19 +0000 (08:03 +0100)
commite1868033d66f127dda2db4c9d5f636e404b05b00
tree3b2b232180bfe674f6c3a059bd88f736aa958557
parentb45ff61935c58083c18d718c410604489080af76
Add w1_read_bit() to improve waiting for result

Rather than using a full w1_read_byte() to wait for the temperature
sensor to indicate a result is ready introduce a w1_read_bit() and
use that instead. This lets us service USB requests more often while
waiting for the result.
main.c
w1.c
w1.h