Move telemetry EXTI handler up in the chain

This commit is contained in:
Raphael Coeffic
2022-03-24 10:40:17 +01:00
committed by Raphael Coeffic
parent 12e96e451f
commit 4d0d89b967
@@ -140,6 +140,10 @@ void rotaryEncoderStartDelay()
extern "C" void ROTARY_ENCODER_EXTI_IRQHandler1(void) extern "C" void ROTARY_ENCODER_EXTI_IRQHandler1(void)
{ {
#if !defined(BOOT) && defined(TELEMETRY_EXTI_REUSE_INTERRUPT_ROTARY_ENCODER)
check_telemetry_exti();
#endif
if (EXTI_GetITStatus(ROTARY_ENCODER_EXTI_LINE1) != RESET) { if (EXTI_GetITStatus(ROTARY_ENCODER_EXTI_LINE1) != RESET) {
rotaryEncoderStartDelay(); rotaryEncoderStartDelay();
EXTI_ClearITPendingBit(ROTARY_ENCODER_EXTI_LINE1); EXTI_ClearITPendingBit(ROTARY_ENCODER_EXTI_LINE1);
@@ -155,10 +159,6 @@ extern "C" void ROTARY_ENCODER_EXTI_IRQHandler1(void)
#if !defined(BOOT) && defined(INTMODULE_HEARTBEAT_REUSE_INTERRUPT_ROTARY_ENCODER) #if !defined(BOOT) && defined(INTMODULE_HEARTBEAT_REUSE_INTERRUPT_ROTARY_ENCODER)
check_intmodule_heartbeat(); check_intmodule_heartbeat();
#endif #endif
#if !defined(BOOT) && defined(TELEMETRY_EXTI_REUSE_INTERRUPT_ROTARY_ENCODER)
check_telemetry_exti();
#endif
} }
#if defined(ROTARY_ENCODER_EXTI_IRQn2) #if defined(ROTARY_ENCODER_EXTI_IRQn2)