From 424e21ec0793219e5b24f1566f3cbcf4263f5919 Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Wed, 14 Aug 2024 17:57:36 -0500 Subject: [PATCH] #1788 fix missing static_assert message --- src/rp2_common/hardware_pwm/include/hardware/pwm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rp2_common/hardware_pwm/include/hardware/pwm.h b/src/rp2_common/hardware_pwm/include/hardware/pwm.h index d394c7215..d4da7e52b 100644 --- a/src/rp2_common/hardware_pwm/include/hardware/pwm.h +++ b/src/rp2_common/hardware_pwm/include/hardware/pwm.h @@ -655,7 +655,7 @@ static inline void pwm_set_irq_mask_enabled(uint32_t slice_mask, bool enabled) { hw_clear_bits(&pwm_hw->inte, slice_mask); } #else - static_assert(PWM_IRQ_WRAP_1 == PWM_IRQ_WRAP_0 + 1); + static_assert(PWM_IRQ_WRAP_1 == PWM_IRQ_WRAP_0 + 1, ""); uint irq_index = PWM_DEFAULT_IRQ_NUM() - PWM_IRQ_WRAP_0; if (enabled) { hw_set_bits(&pwm_hw->irq_ctrl[irq_index].inte, slice_mask);