Skip to content

Commit

Permalink
Fix compile error in deep sleep example
Browse files Browse the repository at this point in the history
  • Loading branch information
sebromero committed May 7, 2024
1 parent 8166a9a commit 8b77fa1
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
#include "Arduino.h"
#include "Arduino_PowerManagement.h"

PowerManagement manager;
Board board;


void setup() {
manager = PowerManagement();
manager.begin();
board = manager.getBoard();
board = Board();
if(!board.begin()){
Serial.println("Board initialization failed.");
while (true);
}
board.enableWakeupFromRTC();
board.sleepFor(0, 0, 1);

Expand Down

0 comments on commit 8b77fa1

Please sign in to comment.