From 1f75fc0aa12c028b0e70c2d689fa8544599d3245 Mon Sep 17 00:00:00 2001 From: Jakob Hasse Date: Tue, 19 Jul 2022 15:35:32 +0800 Subject: [PATCH] bugfix (esp_timer): made os spinlock static --- components/esp_timer/src/esp_timer_impl_systimer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_timer/src/esp_timer_impl_systimer.c b/components/esp_timer/src/esp_timer_impl_systimer.c index a2af82c3be..e3013c6713 100644 --- a/components/esp_timer/src/esp_timer_impl_systimer.c +++ b/components/esp_timer/src/esp_timer_impl_systimer.c @@ -45,7 +45,7 @@ static intr_handler_t s_alarm_handler = NULL; static systimer_hal_context_t systimer_hal; /* Spinlock used to protect access to the hardware registers. */ -portMUX_TYPE s_time_update_lock = portMUX_INITIALIZER_UNLOCKED; +static portMUX_TYPE s_time_update_lock = portMUX_INITIALIZER_UNLOCKED; void esp_timer_impl_lock(void) {