[Feature] Disable debug on QP's internal task (#20623)

Co-authored-by: Nick Brassel <[email protected]>
This commit is contained in:
Pablo MartínezandNick Brassel authored and GitHub committed 2023-05-01 19:38:18 -07:00
1 parent 4b1ec081d4
commit 82a34aee30
2 files changed
+21 -12

No files matched your search

+7
View File
@@ -88,9 +88,16 @@ void qp_internal_task(void) {
#endif
// Flush (render) dirty regions to corresponding displays
#if !defined(QUANTUM_PAINTER_DEBUG_ENABLE_FLUSH_TASK_OUTPUT)
bool old_debug_state = debug_enable;
debug_enable = false;
#endif // defined(QUANTUM_PAINTER_DEBUG_ENABLE_FLUSH_TASK_OUTPUT)
for (uint8_t i = 0; i < QP_NUM_DEVICES; i++) {
if (qp_devices[i] != NULL) {
qp_flush(qp_devices[i]);
}
}
#if !defined(QUANTUM_PAINTER_DEBUG_ENABLE_FLUSH_TASK_OUTPUT)
debug_enable = old_debug_state;
#endif // defined(QUANTUM_PAINTER_DEBUG_ENABLE_FLUSH_TASK_OUTPUT)
}