From 68e5f1531c5e0b0459174c41b2f8b10672654cb8 Mon Sep 17 00:00:00 2001 From: Samuel Sadok Date: Fri, 3 Sep 2021 15:41:20 +0200 Subject: [PATCH] fix compile --- Firmware/Drivers/STM32/stm32_gpio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Firmware/Drivers/STM32/stm32_gpio.cpp b/Firmware/Drivers/STM32/stm32_gpio.cpp index b77e8c4a..8726beee 100644 --- a/Firmware/Drivers/STM32/stm32_gpio.cpp +++ b/Firmware/Drivers/STM32/stm32_gpio.cpp @@ -16,7 +16,7 @@ const Stm32Gpio Stm32Gpio::none{nullptr, 0}; * Note that all GPIOs with the same pin number map to the same IRQn, * no matter which port they belong to. */ -static IRQn_Type get_irq_number(uint16_t pin_number) { +static inline IRQn_Type get_irq_number(uint16_t pin_number) { switch (pin_number) { case 0: return EXTI0_IRQn; case 1: return EXTI1_IRQn;