From eae1329dfe5a3a474dcb6be5da83a7e46768aa5a Mon Sep 17 00:00:00 2001 From: pascallanger Date: Sat, 12 Aug 2023 13:16:39 +0200 Subject: [PATCH] Add flags for KFPLAN Z61 BF109 --- Multiprotocol/MT99xx_ccnrf.ino | 13 ++++++++++--- Multiprotocol/Multiprotocol.h | 2 +- Protocols_Details.md | 8 ++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/Multiprotocol/MT99xx_ccnrf.ino b/Multiprotocol/MT99xx_ccnrf.ino index e967d0f..d0d886e 100644 --- a/Multiprotocol/MT99xx_ccnrf.ino +++ b/Multiprotocol/MT99xx_ccnrf.ino @@ -83,7 +83,12 @@ enum{ enum{ // flags going to packet[6] (F949G) FLAG_F949G_LIGHT = 0x01, + FLAG_F949G_RATES = 0x02, FLAG_F949G_3D6G = 0x20, + FLAG_BF109_RATES = 0x01, // short press right + FLAG_BF109_LIGHT = 0x02, // short press left + FLAG_BF109_UNK1 = 0x08, // long press right + FLAG_BF109_UNK2 = 0x10, // long press left }; enum{ // flags going to packet[6] (PA18) @@ -248,9 +253,11 @@ static void __attribute__((unused)) MT99XX_send_packet() #endif break; case F949G: - packet[6] = 0x02 - | GET_FLAG( CH5_SW, FLAG_F949G_3D6G ) - | GET_FLAG( CH6_SW, FLAG_F949G_LIGHT ); + packet[6] = GET_FLAG( CH5_SW, FLAG_F949G_3D6G ) + | GET_FLAG( CH6_SW, FLAG_F949G_LIGHT ) //FLAG_BF109_RATES + | GET_FLAG(!CH7_SW, FLAG_F949G_RATES ) //FLAG_BF109_LIGHT + | GET_FLAG( CH8_SW, FLAG_BF109_UNK1 ) //BF109 long press right, temporary flag + | GET_FLAG( CH9_SW, FLAG_BF109_UNK2 ); //BF109 long press left, temporary flag packet[7] = 0x00; break; case PA18+8: diff --git a/Multiprotocol/Multiprotocol.h b/Multiprotocol/Multiprotocol.h index 5b1e9ae..76e89d9 100644 --- a/Multiprotocol/Multiprotocol.h +++ b/Multiprotocol/Multiprotocol.h @@ -19,7 +19,7 @@ #define VERSION_MAJOR 1 #define VERSION_MINOR 3 #define VERSION_REVISION 3 -#define VERSION_PATCH_LEVEL 27 +#define VERSION_PATCH_LEVEL 28 #define MODE_SERIAL 0 diff --git a/Protocols_Details.md b/Protocols_Details.md index 8c3f425..2024aa5 100644 --- a/Protocols_Details.md +++ b/Protocols_Details.md @@ -1182,6 +1182,14 @@ CH1|CH2|CH3|CH4|CH5|CH6 ---|---|---|---|---|--- A|E|T|R|6G3D|Light +Model: KFPLAN Z61 BF109 + +CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9 +---|---|---|---|---|---|---|---|--- +A|E|T|R|-|Rate|Light|Unk1|Unk2 + +Unk1&2: long press right/left + ## MT99XX2 - *92* ### Sub_protocol PA18 - *92*