mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2026-01-27 15:33:17 +00:00
Fix DSM telemetry and global cyrf6936 freq tunning
- Fixed DSM telemetry with some RXs (R720X) - Global frequency tunning for all protocols using the CYRF6936 by adjusting channel 15 when enabled - Changed default DSM_THROTTLE_KILL_CH to use channel 14
This commit is contained in:
@@ -80,9 +80,6 @@ static void __attribute__((unused)) WFLY_cyrf_data_config()
|
||||
|
||||
static uint16_t __attribute__((unused)) WFLY_send_data_packet()
|
||||
{
|
||||
#ifdef USE_CYRF6936_CH15_TUNING
|
||||
static uint16_t Channel15=1024;
|
||||
#endif
|
||||
packet_count++;
|
||||
packet[0] = rx_tx_addr[2];
|
||||
packet[1] = rx_tx_addr[3];
|
||||
@@ -137,16 +134,6 @@ static uint16_t __attribute__((unused)) WFLY_send_data_packet()
|
||||
sum += packet[i];
|
||||
packet[len] = sum;
|
||||
|
||||
#ifdef USE_CYRF6936_CH15_TUNING
|
||||
if(Channel15!=Channel_data[CH15])
|
||||
{ // adjust frequency
|
||||
Channel15=Channel_data[CH15]+0x155; // default value is 0x555 = 0x400 + 0x155
|
||||
CYRF_WriteRegister(CYRF_1B_TX_OFFSET_LSB, Channel15&0xFF);
|
||||
CYRF_WriteRegister(CYRF_1C_TX_OFFSET_MSB, Channel15>>8);
|
||||
Channel15-=0x155;
|
||||
}
|
||||
#endif
|
||||
|
||||
CYRF_ConfigRFChannel(hopping_frequency[(packet_count)%4]);
|
||||
CYRF_SetPower(0x08);
|
||||
CYRF_WriteDataPacketLen(packet, len+1);
|
||||
|
||||
Reference in New Issue
Block a user