chg: increase stack size - hf mfu simlation needs it

This commit is contained in:
iceman1001 2020-06-14 12:16:27 +02:00
commit 62ce1cdf13
2 changed files with 3 additions and 2 deletions

View file

@ -361,9 +361,10 @@ static void SendStatus(void) {
#endif
printConnSpeed();
DbpString(_CYAN_("Various"));
// pointer arithmetic is times 4. (two shifts to the left)
for (uint32_t *p = &_stack_start; ; ++p) {
if (*p != 0xdeadbeef) {
Dbprintf(" Max stack usage so far..%d", (&_stack_end - p)*4);
Dbprintf(" Max stack usage.........%d / %d bytes", (&_stack_end - p) << 2, (&_stack_end - &_stack_start) << 2);
break;
}
}