Skip to content

Commit

Permalink
Fix MKS TinyBee build error
Browse files Browse the repository at this point in the history
See Issue MarlinFirmware#24440:

Build error: HAL.h: 'spinlock' was not declared in this scope
  • Loading branch information
eduard-sukharev authored Jul 5, 2022
1 parent 132c37a commit c635853
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/HAL/ESP32/HAL.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@
#endif
#endif

#define CRITICAL_SECTION_START() portENTER_CRITICAL(&spinlock)
#define CRITICAL_SECTION_END() portEXIT_CRITICAL(&spinlock)
#define CRITICAL_SECTION_START() portENTER_CRITICAL(&MarlinHAL::spinlock)
#define CRITICAL_SECTION_END() portEXIT_CRITICAL(&MarlinHAL::spinlock)

#define HAL_CAN_SET_PWM_FREQ // This HAL supports PWM Frequency adjustment
#define PWM_FREQUENCY 1000u // Default PWM frequency when set_pwm_duty() is called without set_pwm_frequency()
Expand Down

0 comments on commit c635853

Please sign in to comment.