1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-01 03:26:58 +03:00

disabling RF (work-in-progress)

This commit is contained in:
Ivan Grokhotkov
2015-06-19 20:46:01 +03:00
parent aaf1f7652d
commit 432198f178
2 changed files with 22 additions and 7 deletions

View File

@ -118,9 +118,15 @@ void init_done() {
esp_schedule();
}
extern "C" int __get_rf_mode() __attribute__((weak));
extern "C" int __get_rf_mode()
{
return 0; // default mode
}
extern "C" {
void user_rf_pre_init() {
system_phy_set_rfoption(__get_rf_mode());
}
}