diff --git a/src/pulses_avr.cpp b/src/pulses_avr.cpp index d9c8ba8ca..9bc27b75c 100644 --- a/src/pulses_avr.cpp +++ b/src/pulses_avr.cpp @@ -168,7 +168,7 @@ ISR(TIMER1_COMPA_vect) //2MHz pulse generation setupPulses(); - if (!IS_PXX_PROTOCOL(g_model.protocol) && !IS_DSM2_PROTOCOL(g_model.protocol)) { + if (!IS_PXX_PROTOCOL(s_current_protocol) && !IS_DSM2_PROTOCOL(s_current_protocol)) { // cli is not needed because for these 2 protocols interrupts are not enabled when entering here