Conversation
… serial command d0-d3
What was doneReplaced the scattered compile-time #define DEBUG values across the firmware with a single global gpad_debug_level variable. All debug print guards were converted from #if preprocessor checks (which required a recompile) to runtime if checks, so the level can be changed while the device is running. How to useVia LCD menu: Open Krake Menu with the rotary encoder → navigate to Debug Lvl → rotate to pick a value → press button to confirm Via Serial Monitor: Type d0, d1, d2, or d3 and press enter Debug levels
Files changed
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f291db7158
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| @@ -0,0 +1,3 @@ | |||
| #include "gpad_debug.h" | |||
|
|
|||
| int gpad_debug_level = 0; | |||
There was a problem hiding this comment.
Initialize debug level before boot-time logging
Setting gpad_debug_level to 0 by default disables every debug print in setup() and GPAD_HAL_setup(), but the new mechanisms that change this value (interpretBuffer() serial command and the LCD FIELD) only run after setup has completed. In practice, sending d1 after boot cannot expose startup diagnostics like MAC/Wi-Fi/UART logs, so boot-time debugging regresses compared with the previous default (DEBUG 1 in GPAD_API.ino).
Useful? React with 👍 / 👎.
…table-at-run-time-through-lcd-menu-rev-047

Links
What & Why
Validation / How to Verify
Artifacts (attach if relevant)
Checklist