From: Michael Reutman Date: Wed, 5 Dec 2018 04:22:55 +0000 (-0800) Subject: Add static qualifier to s_light_sleep_wakeup variable to prevent it from being global. X-Git-Tag: v3.3-beta2~88^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02da4154a1a0a0a07feceb0262dc33fbff351670;p=esp-idf Add static qualifier to s_light_sleep_wakeup variable to prevent it from being global. Closes https://github.com/espressif/esp-idf/pull/2793 --- diff --git a/components/esp32/sleep_modes.c b/components/esp32/sleep_modes.c index f3bd071f3f..d460365905 100644 --- a/components/esp32/sleep_modes.c +++ b/components/esp32/sleep_modes.c @@ -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. */