[stock / gruvin9x] DSM2=SERIAL was broken since r2725, thanks Cam for

reporting this issue!
This commit is contained in:
Bertrand Songis
2013-12-20 10:51:34 +01:00
parent 89c6bb2513
commit 70102b2fa5
+3 -1
View File
@@ -108,7 +108,9 @@ ISR(TIMER1_COMPA_vect) //2MHz pulse generation (BLOCKING ISR)
// Call setupPulses only after REST pulse had been sent.
// Must do this before toggle PORTB to keep timing accurate
if (IS_DSM2_SERIAL_PROTOCOL(s_current_protocol[0]) || *((uint16_t*)pulses2MHzRPtr) == 0) {
OCR1A = SETUP_PULSES_DURATION;
if (!IS_DSM2_SERIAL_PROTOCOL(s_current_protocol[0])) {
OCR1A = SETUP_PULSES_DURATION;
}
setupPulses(); // does not sei() for setupPulsesPPM
heartbeat |= HEART_TIMER_PULSES;
return;