]> granicus.if.org Git - esp-idf/commitdiff
Add static qualifier to s_light_sleep_wakeup variable to prevent it from being global.
authorMichael Reutman <mreutman@gmail.com>
Wed, 5 Dec 2018 04:22:55 +0000 (20:22 -0800)
committerMahavir Jain <mahavir@espressif.com>
Wed, 23 Jan 2019 11:17:23 +0000 (16:47 +0530)
Closes https://github.com/espressif/esp-idf/pull/2793

components/esp32/sleep_modes.c

index f3bd071f3ff5e573b499a91c33e0e979b0c8dd28..d460365905e5c084092d418719ca88e52caf1ad8 100644 (file)
@@ -81,7 +81,9 @@ static sleep_config_t s_config = {
     .wakeup_triggers = 0
 };
 
-bool s_light_sleep_wakeup = false;
+/* Internal variable used to track if light sleep wakeup sources are to be
+   expected when determining wakeup cause. */
+static bool s_light_sleep_wakeup = false;
 
 /* Updating RTC_MEMORY_CRC_REG register via set_rtc_memory_crc()
    is not thread-safe. */