From 58ca3be1ecec4935e2518a9c3d5c4eed9d2a15dc Mon Sep 17 00:00:00 2001 From: Karl Andersson Date: Thu, 26 Apr 2018 21:31:01 +0200 Subject: [PATCH] delayMicroseconds() cannot be called in critical section (#10535) on the STM32 platform --- Marlin/src/feature/Max7219_Debug_LEDs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Marlin/src/feature/Max7219_Debug_LEDs.cpp b/Marlin/src/feature/Max7219_Debug_LEDs.cpp index 03752a3d1c..f7e46e5842 100644 --- a/Marlin/src/feature/Max7219_Debug_LEDs.cpp +++ b/Marlin/src/feature/Max7219_Debug_LEDs.cpp @@ -64,7 +64,7 @@ static uint8_t LEDs[8] = { 0 }; #ifdef CPU_32_BIT - #define MS_DELAY() delayMicroseconds(7) // 32-bit processors need a delay to stabilize the signal +void MS_DELAY() { DELAY_1US; } // 32-bit processors need a delay to stabilize the signal #else #define MS_DELAY() DELAY_3_NOP #endif