Change deprecated esp_efuse_read_mac method

This commit is contained in:
me-no-dev 2017-05-15 21:35:25 +03:00
parent 4765554afd
commit d36e9bbfa9

View File

@ -217,6 +217,6 @@ bool EspClass::flashRead(uint32_t offset, uint32_t *data, size_t size)
uint64_t EspClass::getEfuseMac(void)
{
uint64_t _chipmacid;
esp_efuse_read_mac((uint8_t*) (&_chipmacid));
esp_efuse_mac_get_default((uint8_t*) (&_chipmacid));
return _chipmacid;
}