From 204613ab0b84b39c707900d276b5ff35ce67d96e Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Tue, 04 Apr 2023 23:04:40 +0800 Subject: [PATCH] update wifi test program --- Production/ISKBoard_QCTester/Core/Src/main.c | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/Production/ISKBoard_QCTester/Core/Src/main.c b/Production/ISKBoard_QCTester/Core/Src/main.c index d02d1dd..5662744 100644 --- a/Production/ISKBoard_QCTester/Core/Src/main.c +++ b/Production/ISKBoard_QCTester/Core/Src/main.c @@ -136,7 +136,7 @@ MX_CAN1_Init(); /* USER CODE BEGIN 2 */ - printf("Welcome to ISKBoard v1.0\r\n"); + printf("Welcome to ISKBoard v1.0, compiled on %s %s\r\n", __DATE__, __TIME__); OLED_Init(); ws2812b_init(); @@ -507,11 +507,19 @@ } printf("ESP32 firmware version:\r\n%s\r\n", version); + + if( !strstr(version, "1.7.1.0") ) + { + printf("ERROR: ESP32 firmware not matched, please upgrade it first!\r\n"); + rv = -2; + goto cleanup; + } init = 1; } rv = send_atcmd_check_ok(comport, "AT", 500); +cleanup: printf("WiFi module AT test [%s]\r\n", rv?"FAIL":"OKAY"); snprintf(oledstr, sizeof(oledstr), "WiFi: %s", rv?"FAIL":"OK"); oled_show(oledstr); -- Gitblit v1.9.1