From 4898c78527ae510b1ddbe6d0e1a70f62c2a25662 Mon Sep 17 00:00:00 2001 From: profezzorn Date: Mon, 30 Dec 2024 03:50:42 -0600 Subject: [PATCH] fix warnings --- blades/pwm_pin.h | 1 + blades/stm32l4_ws2811.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blades/pwm_pin.h b/blades/pwm_pin.h index c27bd3efe..745362128 100644 --- a/blades/pwm_pin.h +++ b/blades/pwm_pin.h @@ -36,6 +36,7 @@ void SetupTimer(uint32_t instance, PWM_USECASE usecase) { case PWM_USECASE::IR: case PWM_USECASE::WS2811: PVLOG_NORMAL << "Fatal error in SetupTimer()"; + [[gnu::fallthrough]]; case PWM_USECASE::PWM: // 813 Hz, 32768 steps hz = 813; diff --git a/blades/stm32l4_ws2811.h b/blades/stm32l4_ws2811.h index 34ba5b40d..cd662ba1b 100644 --- a/blades/stm32l4_ws2811.h +++ b/blades/stm32l4_ws2811.h @@ -526,7 +526,7 @@ class WS2811EngineSTM32L4 : public WS2811Engine { TRACE(BLADE, "dma done exit"); } - static void static_kick(void *context) { + static void static_kick(void *context, long unsigned int v) { WS2811EngineSTM32L4* engine = ((WS2811EngineSTM32L4*)context); engine->kick(); }