[Feature] Disable debug on QP's internal task (#20623)
Co-authored-by: Nick Brassel <nick@tzarc.org>
This commit is contained in:
parent
4b1ec081d4
commit
82a34aee30
2 changed files with 21 additions and 12 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue