diff --git a/cores/esp8266/Esp.cpp b/cores/esp8266/Esp.cpp index 3d70d61fe..eb1cade8c 100644 --- a/cores/esp8266/Esp.cpp +++ b/cores/esp8266/Esp.cpp @@ -89,6 +89,11 @@ uint32_t EspClass::getChipId(void) return system_get_chip_id(); } +uint32_t EspClass::getFlashChipId(void) +{ + return spi_flash_get_id(); +} + const char * EspClass::getSDKversion(void) { return system_get_sdk_version(); diff --git a/cores/esp8266/Esp.h b/cores/esp8266/Esp.h index f4d6b652b..1b55cf051 100644 --- a/cores/esp8266/Esp.h +++ b/cores/esp8266/Esp.h @@ -69,6 +69,7 @@ class EspClass { uint32_t getFreeHeap(void); uint32_t getChipId(void); + uint32_t getFlashChipId(void); const char * getSDKversion(void);