Explorar el Código

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

on the STM32 platform
Karl Andersson hace 7 años
padre
commit
58ca3be1ec
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      Marlin/src/feature/Max7219_Debug_LEDs.cpp

+ 1
- 1
Marlin/src/feature/Max7219_Debug_LEDs.cpp Ver fichero

64
 static uint8_t LEDs[8] = { 0 };
64
 static uint8_t LEDs[8] = { 0 };
65
 
65
 
66
 #ifdef CPU_32_BIT
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
 #else
68
 #else
69
   #define MS_DELAY() DELAY_3_NOP
69
   #define MS_DELAY() DELAY_3_NOP
70
 #endif
70
 #endif

Loading…
Cancelar
Guardar