Skip to content

Commit

Permalink
inlcude esp_deep_sleep.h
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1abin committed Sep 26, 2017
1 parent 03aaa0f commit 395c9e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/M5Stack.cpp
Expand Up @@ -92,7 +92,7 @@ void M5Stack::powerOFF() {
Lcd.sleep();

// ESP32 into deep sleep
uint64_t _wakeupPin_mask = 1ULL << _wakeupPin;
uint64_t _wakeupPin_mask = 1ULL << _wakeupPin;
USE_SERIAL.printf("Enabling EXT1 wakeup on pins GPIO%d\n", _wakeupPin);
esp_deep_sleep_enable_ext1_wakeup(_wakeupPin_mask , ESP_EXT1_WAKEUP_ALL_LOW);

Expand Down

0 comments on commit 395c9e4

Please sign in to comment.