diff --git a/src/app/Module/wjh_OTAUpgrades.c b/src/app/Module/wjh_OTAUpgrades.c index 01a5b35..7d3deb6 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/UART0", CN_UART_BAUD_115200, CN_UART_DATABITS_8, CN_UART_STOPBITS_1, CN_UART_PARITY_NONE); + WifiInit("/dev/UART1", 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 691f393..5c128e0 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/UART1" // -#define CFG_STDIO_OUT_NAME "/dev/UART1" // -#define CFG_STDIO_ERR_NAME "/dev/UART1" // +#define CFG_STDIO_IN_NAME "/dev/UART0" // +#define CFG_STDIO_OUT_NAME "/dev/UART0" // +#define CFG_STDIO_ERR_NAME "/dev/UART0" // #define CFG_MODULE_ENABLE_STDIO true //******************************* Configure time ******************************************// #define CFG_LOCAL_TIMEZONE 8 //北京时间是东8区