platform: provide free ram metrics
This commit is contained in:
@@ -68,6 +68,14 @@ Platform::version()
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
Platform::freeRam()
|
||||
{
|
||||
#ifdef BOARD_ESP8266
|
||||
return ESP.getFreeHeap();
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
Platform::preSetup()
|
||||
{
|
||||
|
Reference in New Issue
Block a user