diff --git a/Source/system/interrupts.c b/Source/system/interrupts.c --- a/Source/system/interrupts.c +++ b/Source/system/interrupts.c @@ -8,7 +8,7 @@ #include "stm32f0xx.h" #include "system/gpio.h" #include "aprs/afsk.h" -#include "pressure.h" +#include "bme280.h" #include "system/adc.h" // Systick @@ -33,10 +33,10 @@ void TIM1_BRK_UP_TRG_COM_IRQHandler(void // Handle I2C interrupts void I2C1_IRQHandler(void) { - if (pressure_get_i2c_handle()->Instance->ISR & (I2C_FLAG_BERR | I2C_FLAG_ARLO | I2C_FLAG_OVR)) { - HAL_I2C_ER_IRQHandler(pressure_get_i2c_handle()); + if (bme280_get_i2c_handle()->Instance->ISR & (I2C_FLAG_BERR | I2C_FLAG_ARLO | I2C_FLAG_OVR)) { + HAL_I2C_ER_IRQHandler(bme280_get_i2c_handle()); } else { - HAL_I2C_EV_IRQHandler(pressure_get_i2c_handle()); + HAL_I2C_EV_IRQHandler(bme280_get_i2c_handle()); } }