Преглед изворни кода

esp_phy: fix rtc_printf and libbtbb version print

zhangwenxu пре 2 година
родитељ
комит
de7a39477f
2 измењених фајлова са 7 додато и 4 уклоњено
  1. 1 1
      components/esp_phy/lib
  2. 6 3
      components/esp_phy/src/lib_printf.c

+ 1 - 1
components/esp_phy/lib

@@ -1 +1 @@
-Subproject commit dd8e87f58d6d396ad70d19026ee18a356bc32408
+Subproject commit 30e464c44ca5f7291bdf88b4396ebd8c1a055388

+ 6 - 3
components/esp_phy/src/lib_printf.c

@@ -1,5 +1,5 @@
 /*
- * SPDX-FileCopyrightText: 2016-2022 Espressif Systems (Shanghai) CO LTD
+ * SPDX-FileCopyrightText: 2016-2023 Espressif Systems (Shanghai) CO LTD
  *
  * SPDX-License-Identifier: Apache-2.0
  */
@@ -54,8 +54,11 @@ int phy_printf(const char* format, ...)
 
 int rtc_printf(const char* format, ...)
 {
-    // librtc.a printf temporary disabled due to UART baud rate switching bug.
-    return 0;
+    va_list arg;
+    va_start(arg, format);
+    int res = lib_printf("rtc", format, arg);
+    va_end(arg);
+    return res;
 }
 
 int wpa_printf(const char* format, ...)