From bcd142ec0b9a840370b51c202c52e13c51265eb9 Mon Sep 17 00:00:00 2001
From: John Arne Birkeland <johnarne@gmail.com>
Date: Wed, 27 Feb 2013 14:15:28 +0100
Subject: [PATCH] PPMEncoder - bug fix from previous commit

---
 Tools/ArduPPM/Libraries/PPM_Encoder.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Tools/ArduPPM/Libraries/PPM_Encoder.h b/Tools/ArduPPM/Libraries/PPM_Encoder.h
index 56514597dc..82709bee8b 100644
--- a/Tools/ArduPPM/Libraries/PPM_Encoder.h
+++ b/Tools/ArduPPM/Libraries/PPM_Encoder.h
@@ -804,7 +804,7 @@ ISR( PPM_INT_VECTOR, ISR_NOBLOCK )
     if( ppm_timeout[ ppm_out_channel ] > PPM_TIMEOUT_VALUE )
     {
          // Channel 1-4?
-        if( ppm_out_channel & 7 )
+        if( ppm_out_channel < 8 )
         {
             // Channel 1-4 - Use fail-safe value
             cli();