Skip to content

Commit

Permalink
Move telemetry EXTI handler up in the chain
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelcoeffic committed Mar 24, 2022
1 parent 12e96e4 commit 4d0d89b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions radio/src/targets/common/arm/stm32/rotary_encoder_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ void rotaryEncoderStartDelay()

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) {
rotaryEncoderStartDelay();
EXTI_ClearITPendingBit(ROTARY_ENCODER_EXTI_LINE1);
Expand All @@ -155,10 +159,6 @@ extern "C" void ROTARY_ENCODER_EXTI_IRQHandler1(void)
#if !defined(BOOT) && defined(INTMODULE_HEARTBEAT_REUSE_INTERRUPT_ROTARY_ENCODER)
check_intmodule_heartbeat();
#endif

#if !defined(BOOT) && defined(TELEMETRY_EXTI_REUSE_INTERRUPT_ROTARY_ENCODER)
check_telemetry_exti();
#endif
}

#if defined(ROTARY_ENCODER_EXTI_IRQn2)
Expand Down

0 comments on commit 4d0d89b

Please sign in to comment.