From d2ddb4b5e1a1b73dfeb2e1ef08ff780f6f28d23e Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Fri, 6 Jan 2023 01:28:14 +0800 Subject: [PATCH] test_apps(gdb): Updates the chip version format (vX.Y) --- tools/test_apps/system/gdb/main/hello_world_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/test_apps/system/gdb/main/hello_world_main.c b/tools/test_apps/system/gdb/main/hello_world_main.c index 915866a4c2..d924e14435 100644 --- a/tools/test_apps/system/gdb/main/hello_world_main.c +++ b/tools/test_apps/system/gdb/main/hello_world_main.c @@ -25,7 +25,9 @@ void app_main(void) (chip_info.features & CHIP_FEATURE_BT) ? "/BT" : "", (chip_info.features & CHIP_FEATURE_BLE) ? "/BLE" : ""); - printf("silicon revision %d, ", chip_info.revision); + unsigned major_rev = chip_info.revision / 100; + unsigned minor_rev = chip_info.revision % 100; + printf("silicon revision v%d.%d, ", major_rev, minor_rev); if(esp_flash_get_size(NULL, &flash_size) != ESP_OK) { printf("Get flash size failed"); return;