Skip to content

Commit

Permalink
There may exist code expecting this macro definition to overwrite the…
Browse files Browse the repository at this point in the history
… weak symbol.
  • Loading branch information
dok-net committed Mar 12, 2023
1 parent 3fc7d23 commit abd17a7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cores/esp8266/Esp.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ enum RFMode {
RF_DISABLED = 4 // disable RF after deep-sleep wake up, just like modem sleep, there will be the smallest current.
};

#define RF_PRE_INIT() void __run_user_rf_pre_init()

// compatibility definitions
#define WakeMode RFMode
#define WAKE_RF_DEFAULT RF_DEFAULT
Expand Down
2 changes: 1 addition & 1 deletion cores/esp8266/core_esp8266_phy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ extern int __get_adc_mode(void)
extern void __run_user_rf_pre_init(void) __attribute__((noinline, weak));
extern void __run_user_rf_pre_init(void)
{
return; // default do noting
return; // default do nothing
}

#if (NONOSDK >= (0x30000))
Expand Down

0 comments on commit abd17a7

Please sign in to comment.