mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-09-24 04:22:00 +00:00
Update DSM_cyrf6936.ino
This commit is contained in:
@@ -102,7 +102,7 @@ static void __attribute__((unused)) DSM_build_bind_packet()
|
||||
if(sub_protocol==DSM_AUTO)
|
||||
packet[11] = 12;
|
||||
else
|
||||
packet[11] = min(num_ch,12); // DX5 DSMR sends 0x48...
|
||||
packet[11] = min(num_ch,12); // DX5 DSMR sends 0x48...
|
||||
//packet[11] = 3; // DX3R
|
||||
|
||||
if (sub_protocol==DSMR)
|
||||
@@ -142,13 +142,13 @@ static void __attribute__((unused)) DSM_initialize_bind_phase()
|
||||
static void __attribute__((unused)) DSM_update_channels()
|
||||
{
|
||||
prev_option=option;
|
||||
num_ch=option & 0x0F; // Remove flags 0x80=max_throw, 0x40=11ms, 0x20=Cloned
|
||||
num_ch=option & 0x0F; // Remove flags 0x80=max_throw, 0x40=11ms, 0x20=Cloned
|
||||
|
||||
if (num_ch==0) // Special case for 16ch, since channels are encoded in lower 4 bits, 0=16 channels
|
||||
num_ch=16;
|
||||
if (num_ch==0) // Special case for 16ch, since channels are encoded in lower 4 bits, 0=16 channels
|
||||
num_ch=16;
|
||||
|
||||
if(num_ch<3)
|
||||
num_ch=6; // Default to 6 channels if invalid choice...
|
||||
num_ch=6; // Default to 6 channels if invalid choice...
|
||||
|
||||
#ifndef MULTI_AIR
|
||||
if(sub_protocol==DSMR && num_ch>7)
|
||||
|
||||
Reference in New Issue
Block a user