From b8927d66e90d60e4474bb1b5fc2c26b1d2161f26 Mon Sep 17 00:00:00 2001 From: pascallanger Date: Wed, 20 Jan 2016 21:30:37 +0100 Subject: [PATCH] PPM fix --- Multiprotocol/Multiprotocol.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Multiprotocol/Multiprotocol.ino b/Multiprotocol/Multiprotocol.ino index 678de5c..c10128d 100644 --- a/Multiprotocol/Multiprotocol.ino +++ b/Multiprotocol/Multiprotocol.ino @@ -712,7 +712,7 @@ ISR(INT1_vect) else if(chan!=-1) // need to wait for start of frame { //servo values between 500us and 2420us will end up here - uint16_t a = Cur_TCNT1>>2; + uint16_t a = Cur_TCNT1>>1; if(aPPM_MAX) a=PPM_MAX; PPM_data[chan]=a;