Change deprecated esp_efuse_read_mac method
This commit is contained in:
parent
4765554afd
commit
d36e9bbfa9
@ -217,6 +217,6 @@ bool EspClass::flashRead(uint32_t offset, uint32_t *data, size_t size)
|
|||||||
uint64_t EspClass::getEfuseMac(void)
|
uint64_t EspClass::getEfuseMac(void)
|
||||||
{
|
{
|
||||||
uint64_t _chipmacid;
|
uint64_t _chipmacid;
|
||||||
esp_efuse_read_mac((uint8_t*) (&_chipmacid));
|
esp_efuse_mac_get_default((uint8_t*) (&_chipmacid));
|
||||||
return _chipmacid;
|
return _chipmacid;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user