From bdf5ef4e0d15f4d18c4da441903f2da15f7c10e0 Mon Sep 17 00:00:00 2001 From: "gruvin@gmail.com" Date: Fri, 24 Aug 2012 02:31:09 +0000 Subject: [PATCH] Fixed bug in DSM2=SERIAL, introduced in previous commit. Does not affect DSM2=PPM. (Tested it properly this time before committing! Sheesh.) --- src/pulses_avr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pulses_avr.cpp b/src/pulses_avr.cpp index bdc98a0b8..dd0710c12 100644 --- a/src/pulses_avr.cpp +++ b/src/pulses_avr.cpp @@ -433,7 +433,6 @@ FORCEINLINE void setupPulsesDsm2() *ptr = 0x18; // DSMX bind mode break; } - if (s_bind_allowed) s_bind_allowed--; if (s_bind_allowed && keyState(SW_Trainer)) { @@ -446,7 +445,7 @@ FORCEINLINE void setupPulsesDsm2() } else s_bind_mode = false; - ++*ptr; + ++ptr; *ptr++ = g_model.modelId; for (uint8_t i=0; i