Skip to content

Commit

Permalink
modified: examples/RF12/roomNode/roomNode.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper Klein committed Oct 23, 2011
1 parent 5165eb5 commit feab5b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/RF12/roomNode/roomNode.ino
Expand Up @@ -116,7 +116,7 @@ struct {
#endif

// has to be defined because we're using the watchdog for low-power waiting
// ISR(WDT_vect) { Sleepy::watchdogEvent(); }
ISR(WDT_vect) { Sleepy::watchdogEvent(); }

// utility code to perform simple smoothing as a running average
static int smoothedAverage(int prev, int next, byte firstTime =0) {
Expand All @@ -127,7 +127,7 @@ static int smoothedAverage(int prev, int next, byte firstTime =0) {

// spend a little time in power down mode while the SHT11 does a measurement
static void shtDelay () {
delay(32); // must wait at least 20 ms
Sleepy::loseSomeTime(32); // must wait at least 20 ms
}

// wait a few milliseconds for proper ACK to me, return true if indeed received
Expand Down

0 comments on commit feab5b8

Please sign in to comment.