Re: keep variable after restart
Posted: Mon Nov 26, 2018 2:08 am
by mvadu!
Is this bug been fixed? Or should we still be using another dummy RTC_DATA_ATTR variable just to keep the memory powered up?
Re: keep variable after restart
Posted: Mon Nov 26, 2018 3:31 am
by ESP_igrr
Re: keep variable after restart
Posted: Tue Jul 07, 2020 2:36 pm
by j4e8a16n
Hi,
RTC_NOINIT_ATTR int waitFlag = 0;
Serial.println((String)waitFlag);
Why do I get this?
1881730620
Regards
JPD
Re: keep variable after restart
Posted: Tue Jul 07, 2020 6:18 pm
by Sprite
...because you tell the compiler not to initialize the variable, and that seemingly takes precedence over the fact that you tell it to initialize the variable.