From 62486c22209596385e2f6829eac552964ba456b6 Mon Sep 17 00:00:00 2001 From: Konstantin Tretyakov Date: Sat, 23 May 2020 00:09:46 +0200 Subject: [PATCH] JJRC345: Reduce stick sensitivity (#355) A largely symbolic contribution to record participation in protocol development. See: https://github.com/DeviationTX/deviation/pull/853 --- Multiprotocol/JJRC345_nrf24l01.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Multiprotocol/JJRC345_nrf24l01.ino b/Multiprotocol/JJRC345_nrf24l01.ino index 07f16f056..0ebb564a5 100644 --- a/Multiprotocol/JJRC345_nrf24l01.ino +++ b/Multiprotocol/JJRC345_nrf24l01.ino @@ -76,13 +76,13 @@ static void __attribute__((unused)) JJRC345_send_packet() if(CH5_SW) //Flip { - if(packet[6]>0x90) + if(packet[6]>0xF0) packet[6]=0xFF; - else if(packet[6]<0x80 && packet[6]>0x10) + else if(packet[6]<0x80 && packet[6]>0x70) packet[6]=0x7F; - else if(packet[7]>0x90) + if(packet[7]>0xF0) packet[7]=0xFF; - else if(packet[7]<0x80 && packet[7]>0x10) + else if(packet[7]<0x80 && packet[7]>0x70) packet[7]=0x7F; }