From a054ced7402b017d9457ae328750370b0175cfbd Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Thu, 6 Jul 2017 11:01:40 +0800 Subject: [PATCH] =?UTF-8?q?esp=5Fchip=5Finfo:=20populate=20=E2=80=98model?= =?UTF-8?q?=E2=80=99=20field?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/esp32/system_api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/esp32/system_api.c b/components/esp32/system_api.c index c797f30bd..c79761fd7 100644 --- a/components/esp32/system_api.c +++ b/components/esp32/system_api.c @@ -349,6 +349,7 @@ const char* esp_get_idf_version(void) static void get_chip_info_esp32(esp_chip_info_t* out_info) { + out_info->model = CHIP_ESP32; uint32_t reg = REG_READ(EFUSE_BLK0_RDATA3_REG); memset(out_info, 0, sizeof(*out_info)); if ((reg & EFUSE_RD_CHIP_VER_REV1_M) != 0) {