diff options
author | Pablo MartÃnez <58857054+elpekenin@users.noreply.github.com> | 2023-05-02 04:38:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 19:38:18 -0700 |
commit | 82a34aee302fbc226c694c1d2c32ef7226fe9faf (patch) | |
tree | 459f55a6c6828c2850e4da0b1575d37afe51a9bb /quantum | |
parent | 4b1ec081d4acb72cd32911605ea985bd0ef6cb2e (diff) |
[Feature] Disable debug on QP's internal task (#20623)
Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/painter/qp_internal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/quantum/painter/qp_internal.c b/quantum/painter/qp_internal.c index ea23aef7c3..87a30c3f9b 100644 --- a/quantum/painter/qp_internal.c +++ b/quantum/painter/qp_internal.c @@ -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) } |