Some people have reported problem when first radio transmit after sleep was send.

Added radio powerUp() in "sleeping" example sketches.
This commit is contained in:
Henrik Ekblad
2014-02-09 20:54:33 +01:00
parent 94f800c18b
commit 2ade6ac2d8
9 changed files with 15 additions and 2 deletions
@@ -79,6 +79,8 @@ void loop()
// Only send values at a maximum frequency or woken up from sleep
if (SLEEP_MODE || currentTime - lastSend > 1000*SEND_FREQUENCY) {
gw.powerUp(); // Power up radio
// New flow value has been calculated
if (!SLEEP_MODE && flow != oldflow) {
// Check that we dont get unresonable large flow value.