From 1642d7fcb5253a1d3a8f4b2ab9505ca04f5b2448 Mon Sep 17 00:00:00 2001 From: csonsino Date: Mon, 9 Sep 2019 12:06:13 -0600 Subject: [PATCH] Disable interrupts while showing pixels --- apollo3.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apollo3.c b/apollo3.c index 55ef2456..20eed7a1 100644 --- a/apollo3.c +++ b/apollo3.c @@ -59,6 +59,10 @@ void apollo3Show( bitMask = 0x80; #if defined(PIN_METHOD_FAST_GPIO) + + // disable interrupts + am_hal_interrupt_master_disable(); + #ifdef NEO_KHZ400 // 800 KHz check needed only if 400 KHz support enabled if(is800KHz) { #endif @@ -118,6 +122,10 @@ void apollo3Show( } } } + + // re-enable interrupts + am_hal_interrupt_master_enable(); + #endif // NEO_KHZ400 #endif // PIN_METHOD_FAST_GPIO }