We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cbaa57 commit e02932fCopy full SHA for e02932f
cores/esp8266/core_esp8266_phy.c
@@ -261,7 +261,10 @@ void user_rf_pre_init() {
261
// *((volatile uint32_t*) 0x60000710) = 0;
262
263
volatile uint32_t* rtc_reg = (volatile uint32_t*) 0x60001000;
264
- rtc_reg[30] = 0;
+ if((rtc_reg[24] >> 16) > 4) {
265
+ rtc_reg[24] &= 0xFFFF;
266
+ rtc_reg[30] = 0;
267
+ }
268
269
system_set_os_print(0);
270
__run_user_rf_pre_init();
0 commit comments