Browse Source

PPMEncoder - bug fix from previous commit

mission-4.1.18
John Arne Birkeland 12 years ago committed by rmackay9
parent
commit
bcd142ec0b
  1. 2
      Tools/ArduPPM/Libraries/PPM_Encoder.h

2
Tools/ArduPPM/Libraries/PPM_Encoder.h

@ -804,7 +804,7 @@ ISR( PPM_INT_VECTOR, ISR_NOBLOCK ) @@ -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();

Loading…
Cancel
Save