mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
efuse: Fix excess data coming from uninitialized variable
Fixed esp_efuse_get_pkg_ver() function Closes: https://github.com/espressif/esp-idf/pull/3309 Closes: IDFGH-976
This commit is contained in:
parent
9fdc36ed57
commit
dd76df7aee
@ -39,7 +39,7 @@ uint8_t esp_efuse_get_chip_ver(void)
|
|||||||
// Returns chip package from efuse
|
// Returns chip package from efuse
|
||||||
uint32_t esp_efuse_get_pkg_ver(void)
|
uint32_t esp_efuse_get_pkg_ver(void)
|
||||||
{
|
{
|
||||||
uint32_t pkg_ver;
|
uint32_t pkg_ver = 0;
|
||||||
esp_efuse_read_field_blob(ESP_EFUSE_CHIP_VER_PKG, &pkg_ver, 3);
|
esp_efuse_read_field_blob(ESP_EFUSE_CHIP_VER_PKG, &pkg_ver, 3);
|
||||||
return pkg_ver;
|
return pkg_ver;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user