diff options
Diffstat (limited to 'src/recoveryLoader.cpp')
| -rw-r--r-- | src/recoveryLoader.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/recoveryLoader.cpp b/src/recoveryLoader.cpp index d6f8d49b..0a4aa622 100644 --- a/src/recoveryLoader.cpp +++ b/src/recoveryLoader.cpp @@ -139,6 +139,18 @@ void DisplayProgressBar(uint8_t percent, uint16_t color) { } } +int mallocFailedCount = 0; +int stackOverflowCount = 0; +extern "C" { +void vApplicationMallocFailedHook() { + mallocFailedCount++; +} + +void vApplicationStackOverflowHook(TaskHandle_t /*xTask*/, char */*pcTaskName*/) { + stackOverflowCount++; +} +} + int main(void) { TaskHandle_t taskHandle; RefreshWatchdog(); |
