瀏覽代碼

delayMicroseconds() cannot be called in critical section (#10535)

on the STM32 platform
Karl Andersson 7 年之前
父節點
當前提交
58ca3be1ec
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      Marlin/src/feature/Max7219_Debug_LEDs.cpp

+ 1
- 1
Marlin/src/feature/Max7219_Debug_LEDs.cpp 查看文件

@@ -64,7 +64,7 @@
64 64
 static uint8_t LEDs[8] = { 0 };
65 65
 
66 66
 #ifdef CPU_32_BIT
67
-  #define MS_DELAY() delayMicroseconds(7)  // 32-bit processors need a delay to stabilize the signal
67
+void MS_DELAY() { DELAY_1US; }  // 32-bit processors need a delay to stabilize the signal
68 68
 #else
69 69
   #define MS_DELAY() DELAY_3_NOP
70 70
 #endif

Loading…
取消
儲存