when brownout reset occurs,set the phy TX Power to the lowest

This commit is contained in:
zhangyanjiao
2018-07-25 17:28:56 +08:00
parent b01e87bbaf
commit 5425979932
3 changed files with 49 additions and 0 deletions

View File

@@ -21,6 +21,11 @@
#define PHY_INIT_MAGIC "PHYINIT"
// define the lowest tx power as LOWEST_PHY_TX_POWER
#define PHY_TX_POWER_LOWEST LIMIT(CONFIG_ESP32_PHY_MAX_TX_POWER * 4, 0, 52)
#define PHY_TX_POWER_OFFSET 44
#define PHY_TX_POWER_NUM 5
static const char phy_init_magic_pre[] = PHY_INIT_MAGIC;
/**