From fff7e379e49672767cfe5f160c5178068fd4efe6 Mon Sep 17 00:00:00 2001 From: wujiahao17 <315776852@qq.com> Date: Tue, 20 Aug 2024 21:58:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/Module/wjh_OTAUpgrades.c | 2 +- src/app/OS_prjcfg/project_config.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/Module/wjh_OTAUpgrades.c b/src/app/Module/wjh_OTAUpgrades.c index 7d3deb6..01a5b35 100644 --- a/src/app/Module/wjh_OTAUpgrades.c +++ b/src/app/Module/wjh_OTAUpgrades.c @@ -75,7 +75,7 @@ static void timerisr(struct Timer *timer) bool_t OTA_Initialize(void){ wjh_TipCreate("窗口初始化"); - WifiInit("/dev/UART1", CN_UART_BAUD_115200, CN_UART_DATABITS_8, CN_UART_STOPBITS_1, CN_UART_PARITY_NONE); + WifiInit("/dev/UART0", CN_UART_BAUD_115200, CN_UART_DATABITS_8, CN_UART_STOPBITS_1, CN_UART_PARITY_NONE); wjh_TipChange("正在连接WIFI"); //wifi连接 OTA_WIFI_Connect(OTA_WIFI_NAME_DEFAULT,OTA_WIFI_PWD_DEFAULT); diff --git a/src/app/OS_prjcfg/project_config.h b/src/app/OS_prjcfg/project_config.h index 5c128e0..691f393 100644 --- a/src/app/OS_prjcfg/project_config.h +++ b/src/app/OS_prjcfg/project_config.h @@ -208,9 +208,9 @@ #define CFG_STDIO_STDERR_FOLLOW true // #define CFG_STDIO_FLOAT_PRINT true // #define CFG_STDIO_STDIOFILE true // -#define CFG_STDIO_IN_NAME "/dev/UART0" // -#define CFG_STDIO_OUT_NAME "/dev/UART0" // -#define CFG_STDIO_ERR_NAME "/dev/UART0" // +#define CFG_STDIO_IN_NAME "/dev/UART1" // +#define CFG_STDIO_OUT_NAME "/dev/UART1" // +#define CFG_STDIO_ERR_NAME "/dev/UART1" // #define CFG_MODULE_ENABLE_STDIO true //******************************* Configure time ******************************************// #define CFG_LOCAL_TIMEZONE 8 //北京时间是东8区