Przeglądaj źródła

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

on the STM32 platform
Karl Andersson 7 lat temu
rodzic
commit
58ca3be1ec
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      Marlin/src/feature/Max7219_Debug_LEDs.cpp

+ 1
- 1
Marlin/src/feature/Max7219_Debug_LEDs.cpp Wyświetl plik

@@ -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

Ładowanie…
Anuluj
Zapisz