Selaa lähdekoodia

🐛 Fix MKS TinyBee compile (#24454)

Eduard Sukharev 3 vuotta sitten
vanhempi
commit
55417b28fe
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2
    2
      Marlin/src/HAL/ESP32/HAL.h

+ 2
- 2
Marlin/src/HAL/ESP32/HAL.h Näytä tiedosto

60
   #endif
60
   #endif
61
 #endif
61
 #endif
62
 
62
 
63
-#define CRITICAL_SECTION_START() portENTER_CRITICAL(&spinlock)
64
-#define CRITICAL_SECTION_END()   portEXIT_CRITICAL(&spinlock)
63
+#define CRITICAL_SECTION_START() portENTER_CRITICAL(&hal.spinlock)
64
+#define CRITICAL_SECTION_END()   portEXIT_CRITICAL(&hal.spinlock)
65
 
65
 
66
 #define HAL_CAN_SET_PWM_FREQ   // This HAL supports PWM Frequency adjustment
66
 #define HAL_CAN_SET_PWM_FREQ   // This HAL supports PWM Frequency adjustment
67
 #define PWM_FREQUENCY  1000u   // Default PWM frequency when set_pwm_duty() is called without set_pwm_frequency()
67
 #define PWM_FREQUENCY  1000u   // Default PWM frequency when set_pwm_duty() is called without set_pwm_frequency()

Loading…
Peruuta
Tallenna