From e59269efa05f9359aee0511b168b9c83c7123a9a Mon Sep 17 00:00:00 2001 From: KonstantinKondrashov Date: Tue, 20 Dec 2022 17:22:32 +0800 Subject: [PATCH] esp_hw_support: Fix version in esp_chip_info for C3 and H2 --- components/esp_hw_support/port/esp32c3/chip_info.c | 1 + components/esp_hw_support/port/esp32h2/chip_info.c | 1 + 2 files changed, 2 insertions(+) diff --git a/components/esp_hw_support/port/esp32c3/chip_info.c b/components/esp_hw_support/port/esp32c3/chip_info.c index 621eec5d71..fc388092fe 100644 --- a/components/esp_hw_support/port/esp32c3/chip_info.c +++ b/components/esp_hw_support/port/esp32c3/chip_info.c @@ -13,6 +13,7 @@ void esp_chip_info(esp_chip_info_t *out_info) memset(out_info, 0, sizeof(*out_info)); out_info->model = CHIP_ESP32C3; out_info->full_revision = efuse_hal_chip_revision(); + out_info->revision = efuse_hal_get_minor_chip_version(); out_info->cores = 1; out_info->features = CHIP_FEATURE_WIFI_BGN | CHIP_FEATURE_BLE; } diff --git a/components/esp_hw_support/port/esp32h2/chip_info.c b/components/esp_hw_support/port/esp32h2/chip_info.c index afdc00082f..d598c4f715 100644 --- a/components/esp_hw_support/port/esp32h2/chip_info.c +++ b/components/esp_hw_support/port/esp32h2/chip_info.c @@ -13,6 +13,7 @@ void esp_chip_info(esp_chip_info_t *out_info) memset(out_info, 0, sizeof(*out_info)); out_info->model = CHIP_ESP32H2; out_info->full_revision = efuse_hal_chip_revision(); + out_info->revision = efuse_hal_get_major_chip_version(); out_info->cores = 1; out_info->features = CHIP_FEATURE_IEEE802154 | CHIP_FEATURE_BLE; }