]> the.earth.li Git - energenie-attiny.git/commit
Add a wait before sending via the 433MHz transmitter
authorJonathan McDowell <noodles@earth.li>
Tue, 29 May 2018 06:32:09 +0000 (07:32 +0100)
committerJonathan McDowell <noodles@earth.li>
Tue, 29 May 2018 06:32:09 +0000 (07:32 +0100)
commit2b2a47d9cc5e9ec8e2635283e3c44073719fcf93
tree7404e7ed4b1170fe9a186acffbe55c0ef95d4e70
parent70570add8918865d23b06aecd1209e55e52ee5b6
Add a wait before sending via the 433MHz transmitter

Rather than immediately entering the lengthy (24ms+) loop to send a
command allow a number of calls to usbPoll() to complete first. This
allows the usbrelay control program to successfully receive a response
to its hid_write() call before we stop responding to USB for a bit.
main.c