From: Konstantin Kondrashov Date: Mon, 4 Jun 2018 10:59:22 +0000 (+0500) Subject: newlib: Remove RTC_DATA_ATTR for adjtime X-Git-Tag: v3.1-beta1~48^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1189f4f6a3a86529dbe7d5de510d3abdf68b2ce;p=esp-idf newlib: Remove RTC_DATA_ATTR for adjtime Using RTC_DATA_ATTR in newlib leads to increased power consumption in sleep mode. (RTC SLOW MEM) --- diff --git a/components/newlib/time.c b/components/newlib/time.c index 37b78f3de5..d40dc57397 100644 --- a/components/newlib/time.c +++ b/components/newlib/time.c @@ -80,9 +80,9 @@ static uint64_t s_boot_time; static _lock_t s_boot_time_lock; static _lock_t s_adjust_time_lock; // stores the start time of the slew -RTC_DATA_ATTR static uint64_t adjtime_start = 0; +static uint64_t adjtime_start = 0; // is how many microseconds total to slew -RTC_DATA_ATTR static int64_t adjtime_total_correction = 0; +static int64_t adjtime_total_correction = 0; #define ADJTIME_CORRECTION_FACTOR 6 static uint64_t get_time_since_boot(); #endif