diff options
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) } |