Update DSM_cyrf6936.ino

This commit is contained in:
pascallanger
2026-09-22 11:57:43 -04:00
parent ced6bbc5c8
commit ee984c403d
+5 -5
View File
@@ -102,7 +102,7 @@ static void __attribute__((unused)) DSM_build_bind_packet()
if(sub_protocol==DSM_AUTO) if(sub_protocol==DSM_AUTO)
packet[11] = 12; packet[11] = 12;
else 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 //packet[11] = 3; // DX3R
if (sub_protocol==DSMR) if (sub_protocol==DSMR)
@@ -142,13 +142,13 @@ static void __attribute__((unused)) DSM_initialize_bind_phase()
static void __attribute__((unused)) DSM_update_channels() static void __attribute__((unused)) DSM_update_channels()
{ {
prev_option=option; 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 if (num_ch==0) // Special case for 16ch, since channels are encoded in lower 4 bits, 0=16 channels
num_ch=16; num_ch=16;
if(num_ch<3) 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 #ifndef MULTI_AIR
if(sub_protocol==DSMR && num_ch>7) if(sub_protocol==DSMR && num_ch>7)