1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 00:05:28 +03:00

Merge pull request #642 from iNavFlight/martinbudden-inav_stack_check

Stack watermarking
This commit is contained in:
Konstantin Sharlaimov 2016-10-03 18:19:48 +10:00 committed by GitHub
commit b32e9e7b99
16 changed files with 685 additions and 478 deletions

View file

@ -52,6 +52,7 @@
#include "drivers/timer.h"
#include "drivers/pwm_rx.h"
#include "drivers/sdcard.h"
#include "drivers/stack_check.h"
#include "drivers/buf_writer.h"
@ -2818,6 +2819,10 @@ static void cliStatus(char *cmdline)
const uint16_t i2cErrorCounter = 0;
#endif
#ifdef STACK_CHECK
cliPrintf("Used stack: %d, Total stack: %d\r\n", getUsedStackSize(), getTotalStackSize());
#endif
cliPrintf("Cycle Time: %d, I2C Errors: %d, config size: %d\r\n", cycleTime, i2cErrorCounter, sizeof(master_t));
}