Update Q90C_nrf24l01.ino

This commit is contained in:
Pascal Langer 2020-06-15 15:30:31 +02:00
parent 7e53778680
commit a14c82708f

View File

@ -90,11 +90,10 @@ static void __attribute__((unused)) Q90C_send_packet()
else else
packet[8] ^= 0x08; // Horizon packet[8] ^= 0x08; // Horizon
} }
if(Q90C_VTX!=CH6_SW) if(!Q90C_VTX && CH6_SW)
{
Q90C_VTX=CH6_SW;
packet[8] ^= 0x20; // VTX+ packet[8] ^= 0x20; // VTX+
} Q90C_VTX=CH6_SW;
debugln("8=%02X",packet[8]); debugln("8=%02X",packet[8]);
packet[10] = packet_count++; packet[10] = packet_count++;
} }