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
@@ -60,9 +60,11 @@ void setup()
void loop()
{
unsigned long now = millis();
unsigned long now = millis();
// Only send values at a maximum frequency or woken up from sleep
if (SLEEP_MODE || now - lastSend > 1000*SEND_FREQUENCY) {
gw.powerUp(); // Power up radio
// New watt value has been calculated
if (!SLEEP_MODE && watt != oldWatt) {
// Check that we dont get unresonable large watt value.