deep_sleep: RTC-GPIO pin calculation incorrect

Merges https://github.com/espressif/esp-idf/pull/822
This commit is contained in:
Geza Husi 2017-08-18 09:27:54 +02:00 committed by Angus Gratton
parent c61b3e89f1
commit eb8bd937c6

View file

@ -327,7 +327,7 @@ uint64_t esp_deep_sleep_get_ext1_wakeup_status()
if ((status & BIT(rtc_pin)) == 0) {
continue;
}
gpio_mask |= BIT(gpio);
gpio_mask |= 1ULL << gpio;
}
return gpio_mask;
}