diff --git a/Multiprotocol/DSM_cyrf6936.ino b/Multiprotocol/DSM_cyrf6936.ino index 68b3b197..44634bf6 100644 --- a/Multiprotocol/DSM_cyrf6936.ino +++ b/Multiprotocol/DSM_cyrf6936.ino @@ -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 - - if (num_ch==0) // Special case for 16ch, since channels are encoded in lower 4 bits, 0=16 channels - num_ch=16; + 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<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)