From 251ce1d69cc2031fd6b5da0fe994f4b32d8c117f Mon Sep 17 00:00:00 2001 From: bsongis Date: Fri, 25 May 2012 15:03:33 +0000 Subject: [PATCH] To fix DSM2 regression from last commit --- src/pulses_avr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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