Skip to content

Commit

Permalink
modified to work with master-branch of AskSinPP Lib
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Apr 21, 2018
1 parent ab04fd1 commit 43c6798
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
8 changes: 1 addition & 7 deletions examples/HM-PB-2-WM55/HM-PB-2-WM55.ino
Expand Up @@ -91,15 +91,9 @@ void setup () {
}

void loop() {
bool pinchanged = false;
for( int i=1; i<=sdev.channels(); ++i ) {
if( sdev.channel(i).checkpin() == true) {
pinchanged = true;
}
}
bool worked = hal.runready();
bool poll = sdev.pollRadio();
if( pinchanged == false && worked == false && poll == false ) {
if( worked == false && poll == false ) {
hal.activity.savePower<Sleep<>>(hal);
}
}
8 changes: 1 addition & 7 deletions examples/HM-PB-6-WM55/HM-PB-6-WM55.ino
Expand Up @@ -101,15 +101,9 @@ void setup () {
}

void loop() {
bool pinchanged = false;
for( int i=1; i<=sdev.channels(); ++i ) {
if( sdev.channel(i).checkpin() == true) {
pinchanged = true;
}
}
bool worked = hal.runready();
bool poll = sdev.pollRadio();
if( pinchanged == false && worked == false && poll == false ) {
if(worked == false && poll == false ) {
hal.activity.savePower<Sleep<>>(hal);
}
}
8 changes: 1 addition & 7 deletions examples/HM-PBI-4-FM/HM-PBI-4-FM.ino
Expand Up @@ -91,15 +91,9 @@ void setup () {
}

void loop() {
bool pinchanged = false;
for( int i=1; i<=sdev.channels(); ++i ) {
if( sdev.channel(i).checkpin() == true) {
pinchanged = true;
}
}
bool worked = hal.runready();
bool poll = sdev.pollRadio();
if( pinchanged == false && worked == false && poll == false ) {
if(worked == false && poll == false ) {
hal.activity.savePower<Sleep<>>(hal);
}
}

0 comments on commit 43c6798

Please sign in to comment.