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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user