From 451ea996c9b7aac808f4cc93f0afa1202d6f191e Mon Sep 17 00:00:00 2001 From: Chris Pepper Date: Wed, 15 May 2019 10:35:26 +0100 Subject: [PATCH] [LPC176x] Fix switch fallthrough --- Marlin/src/HAL/HAL_LPC1768/HAL_timers.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/src/HAL/HAL_LPC1768/HAL_timers.h b/Marlin/src/HAL/HAL_LPC1768/HAL_timers.h index e90cdf2488..9c50753a83 100644 --- a/Marlin/src/HAL/HAL_LPC1768/HAL_timers.h +++ b/Marlin/src/HAL/HAL_LPC1768/HAL_timers.h @@ -126,15 +126,15 @@ FORCE_INLINE static hal_timer_t HAL_timer_get_count(const uint8_t timer_num) { FORCE_INLINE static void HAL_timer_enable_interrupt(const uint8_t timer_num) { switch (timer_num) { - case 0: NVIC_EnableIRQ(TIMER0_IRQn); // Enable interrupt handler - case 1: NVIC_EnableIRQ(TIMER1_IRQn); // Enable interrupt handler + case 0: NVIC_EnableIRQ(TIMER0_IRQn); break; // Enable interrupt handler + case 1: NVIC_EnableIRQ(TIMER1_IRQn); break; // Enable interrupt handler } } FORCE_INLINE static void HAL_timer_disable_interrupt(const uint8_t timer_num) { switch (timer_num) { - case 0: NVIC_DisableIRQ(TIMER0_IRQn); // Disable interrupt handler - case 1: NVIC_DisableIRQ(TIMER1_IRQn); // Disable interrupt handler + case 0: NVIC_DisableIRQ(TIMER0_IRQn); break; // Disable interrupt handler + case 1: NVIC_DisableIRQ(TIMER1_IRQn); break; // Disable interrupt handler } // We NEED memory barriers to ensure Interrupts are actually disabled!