Skip to content

Commit

Permalink
#1788 fix missing static_assert message
Browse files Browse the repository at this point in the history
  • Loading branch information
kilograham committed Aug 14, 2024
1 parent 8177366 commit 424e21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rp2_common/hardware_pwm/include/hardware/pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 424e21e

Please sign in to comment.