Skip to content

Commit f1cd394

Browse files
committed
Merge branch 'feature/relink_phy_ets_printf' into 'master'
phy: relink ets_printf of libphy.a to phy_printf See merge request sdk/ESP8266_RTOS_SDK!1095
2 parents 2dadceb + 6b7c871 commit f1cd394

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

components/esp8266/lib/fix_printf.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
xtensa-lx106-elf-objcopy --redefine-sym ets_printf=phy_printf libphy.a

components/esp8266/lib/libphy.a

0 Bytes
Binary file not shown.

components/esp8266/source/phy_init.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,4 +363,12 @@ void esp_wifi_set_max_tx_power_via_vdd33(uint16_t vdd33)
363363
{
364364
extern void phy_vdd33_set_tpw(uint16_t vdd33);
365365
phy_vdd33_set_tpw(vdd33);
366-
}
366+
}
367+
368+
/**
369+
* @brief Just for compiling
370+
*/
371+
int phy_printf(const char *fmt, ...)
372+
{
373+
return 0;
374+
}

0 commit comments

Comments
 (0)