Skip to content

Commit

Permalink
Changed power on from battery behaviour to turn on when it is plugged…
Browse files Browse the repository at this point in the history
… in.
  • Loading branch information
tobbeanton committed Jan 13, 2015
1 parent 2decd40 commit e72ee6e
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,7 @@ int main()
pmInit();

if ((NRF_POWER->GPREGRET&0x01) == 0) {
if (pmUSBPower()) {
pmSetState(pmSysRunning);
} else {
pmSetState(pmAllOff);
while (1)
pmProcess();
}
}

LED_ON();
Expand Down

0 comments on commit e72ee6e

Please sign in to comment.