Increase max backtrace depth from 8 to 16

8 frames was cutting off useful call stack information. 16 frames
costs an additional 32 bytes of .noinit RAM and covers typical
ESPHome call chains which can be 10-12 frames deep.
This commit is contained in:
J. Nick Koston
2026-03-11 11:06:15 -10:00
parent 5adae52819
commit 7acf3f77c4
+1 -1
View File
@@ -17,7 +17,7 @@
#endif
static constexpr uint32_t CRASH_MAGIC = 0xDEADBEEF;
static constexpr size_t MAX_BACKTRACE = 8;
static constexpr size_t MAX_BACKTRACE = 16;
// Check if an address looks like code (flash-mapped or IRAM).
// Must be safe to call from panic context (no flash access needed).