]> the.earth.li Git - temper-clone.git/commit
Poll temperature on a 10s basis
authorJonathan McDowell <noodles@earth.li>
Thu, 10 May 2018 19:58:29 +0000 (20:58 +0100)
committerJonathan McDowell <noodles@earth.li>
Thu, 10 May 2018 20:00:21 +0000 (21:00 +0100)
commit6b61bdbca74f12def23fc5f7099cc633aba420b3
tree6498b1495750a84cc7f81ce09084806ea782a38c
parentf259a83606c7e6692970cd0ec814a7414a481938
Poll temperature on a 10s basis

Rather than polling the temperature sensor when the host requests it
use a timer to poll every 10s and store the result. This means we can
reply quicker when requests, reducing the number of errors we see on
the host due to USB issues. Fixes interaction with the double request
python-temperusb does for every check.
Makefile
main.c
timer.c [new file with mode: 0644]
timer.h [new file with mode: 0644]