Merge pull request #16275 from Staars/patch-1

Fix wrong flash_chip_id on ESP32, when DOUT is not used
This commit is contained in:
Theo Arends 2022-08-21 12:33:43 +02:00 committed by GitHub
commit 4468adf4ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -558,7 +558,7 @@ int32_t ESP_getHeapFragmentation(void) {
uint32_t ESP_getFlashChipId(void)
{
uint32_t id = bootloader_read_flash_id();
uint32_t id = g_rom_flashchip.device_id;
id = ((id & 0xff) << 16) | ((id >> 16) & 0xff) | (id & 0xff00);
return id;
}