From 3cc65aa771ef915885b8f743bc5ac0b63aa2d815 Mon Sep 17 00:00:00 2001 From: "gruvin@gmail.com" Date: Sun, 6 Jan 2013 22:57:36 +0000 Subject: [PATCH] G9X: Corrected TX_CADDY / DSM2_PPM. (See comments comments r1735) --- src/pulses_avr.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pulses_avr.cpp b/src/pulses_avr.cpp index a9784d524..152529325 100644 --- a/src/pulses_avr.cpp +++ b/src/pulses_avr.cpp @@ -735,7 +735,11 @@ void setupPulses() if (s_pulses_paused) required_protocol = PROTO_NONE; -#if defined(PCBGRUVIN9X) && defined(DSM2_SERIAL) && defined(TX_CADDY) +#if defined(PCBGRUVIN9X) && defined(DSM2_PPM) && defined(TX_CADDY) +// This should be here, executed on every loop, to ensure re-setting of the +// TX moudle power control output register, in case of electrical glitch. +// (Following advice of Atmel for MCU's used in industrial / mission cricital +// applications.) if (required_protocol == PROTO_DSM2) PORTH &= ~0x80; else