Skip to content

Commit

Permalink
add EspClass::getFreeHeap see esp8266#81
Browse files Browse the repository at this point in the history
  • Loading branch information
Links2004 committed Apr 19, 2015
1 parent b6ea1e4 commit 8aa93b6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cores/esp8266/Esp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,10 @@ uint16_t EspClass::getVCC(void)
{
return system_get_vdd33();
}

uint32_t EspClass::getFreeHeap(void)
{
return system_get_free_heap_size();
}


1 change: 1 addition & 0 deletions cores/esp8266/Esp.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class EspClass {
void reset(void);
void restart(void);
uint16_t getVCC(void);
uint32_t getFreeHeap(void);
};

extern EspClass ESP;
Expand Down

0 comments on commit 8aa93b6

Please sign in to comment.