Skip to content

Commit 0de49b3

Browse files
committed
Fix sleep nRF52
1 parent 2b39777 commit 0de49b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/helpers/NRF52Board.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class NRF52Board : public mesh::MainBoard {
5353
virtual bool getBootloaderVersion(char* version, size_t max_len) override;
5454
virtual bool startOTAUpdate(const char *id, char reply[]) override;
5555
virtual void sleep(uint32_t secs) override;
56+
void enterLightSleep(uint32_t secs, int pin_wake_btn = -1) { sleep(secs); }
5657

5758
#ifdef NRF52_POWER_MANAGEMENT
5859
bool isExternalPowered() override;

0 commit comments

Comments
 (0)