When DSM2 not included in the firmware and DSM2 chosen as a protocol, the Tx rebooted

This commit is contained in:
bsongis
2012-01-27 07:55:18 +00:00
parent db5ed2b1c1
commit 6d138fe89f
+9 -1
View File
@@ -172,7 +172,15 @@ ISR(TIMER1_COMPA_vect) //2MHz pulse generation
TCCR1C=(1<<FOC1C);
#endif
if (g_model.protocol == PROTO_PPM || g_model.protocol == PROTO_PPM16) {
// TODO test that it's optimized
if (1
#if defined(PXX)
&& g_model.protocol != PROTO_PXX
#endif
#if defined(DSM2_PPM)
&& g_model.protocol != PROTO_DSM2
#endif
) {
// cli is not needed because for these 2 protocols interrupts are not enabled when entering here