Skip to content

Commit

Permalink
fixed missing posmap
Browse files Browse the repository at this point in the history
  • Loading branch information
jp112sdl committed Apr 20, 2018
1 parent 77c6569 commit ab04fd1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/HM-SEC-SC/HM-SEC-SC.ino
Expand Up @@ -146,8 +146,8 @@ void setup () {
DINIT(57600,ASKSIN_PLUS_PLUS_IDENTIFIER);
sdev.init(hal);
buttonISR(cfgBtn,CONFIG_BUTTON_PIN);
//const uint8_t posmap[4] = {Positions::PosA,Positions::PosB,Positions::PosA,Positions::PosB};
sdev.channel(1).init(SENS1_PIN,SENS1_PIN,SABOTAGE_PIN);
const uint8_t posmap[4] = {Position::State::PosA,Position::State::PosB,Position::State::PosA,Position::State::PosB};
sdev.channel(1).init(SENS1_PIN,SENS1_PIN,SABOTAGE_PIN,posmap);
sdev.initDone();
}

Expand All @@ -164,4 +164,4 @@ void loop() {
// if nothing to do - go sleep
hal.activity.savePower<Sleep<> >(hal);
}
}
}

0 comments on commit ab04fd1

Please sign in to comment.