Skip to content

Commit da84929

Browse files
committed
Fix deprecation warnings in ESP.cpp
1 parent c635bcd commit da84929

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: cores/esp32/Esp.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,17 @@ uint32_t EspClass::getCycleCount()
8989

9090
void EspClass::restart(void)
9191
{
92-
system_restart();
92+
esp_restart();
9393
}
9494

9595
uint32_t EspClass::getFreeHeap(void)
9696
{
97-
return system_get_free_heap_size();
97+
return esp_get_free_heap_size();
9898
}
9999

100100
const char * EspClass::getSdkVersion(void)
101101
{
102-
return system_get_sdk_version();
102+
return "";//deprecated in IDF
103103
}
104104

105105
uint32_t EspClass::getFlashChipSize(void)

0 commit comments

Comments
 (0)