Skip to content

Commit

Permalink
Print free stack/heap memory seperated
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Jul 11, 2020
1 parent 22f0abc commit 5a850fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BoxPower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void BoxPower::loop() {
void BoxPower::feedSleepTimer() {
_lastFeed = millis();
Box.watchdog_feed();
Log.verbose("Sleep timer reset, _lastFeed=%l, freeMEM=%ib, *Stack=%X, *Heap=%X", _lastFeed, freeMemory(), stackPointer()-0x20004000, heapPointer()-0x20004000);
Log.verbose("Sleep timer reset, _lastFeed=%l, freeStackMEM=%ib, freeHeapMEM=%ib, *Stack=%X, *Heap=%X", _lastFeed, freeStackMemory(), freeHeapMemory(), stackPointer()-0x20004000, heapPointer()-0x20004000);
}

void BoxPower::_preparePowerDown() {
Expand Down

0 comments on commit 5a850fc

Please sign in to comment.