]> the.earth.li Git - energenie-attiny.git/commitdiff
Track the requested state so we can return it when asked
authorJonathan McDowell <noodles@earth.li>
Wed, 30 May 2018 07:26:59 +0000 (08:26 +0100)
committerJonathan McDowell <noodles@earth.li>
Wed, 30 May 2018 07:26:59 +0000 (08:26 +0100)
The original USB relay code can query the GPIO lines to see which relays
are enabled. We only have one way communication to the power sockets so
they might be in a different state to that requested, but store the
state we think we should have so when asked we can return it, rather
than always returning that everything is off.


No differences found