FrSkyX: clean up

This commit is contained in:
Pascal Langer 2020-07-05 17:19:29 +02:00
parent 5ab00b9d18
commit adebb3fc5c
2 changed files with 10 additions and 10 deletions

View File

@ -174,7 +174,7 @@ uint16_t ReadFrSkyX()
}
}
CC2500_Strobe(CC2500_SIDLE);
CC2500_Strobe(CC2500_SFTX);
CC2500_Strobe(CC2500_SFTX); //Flush the TXFIFO
CC2500_SetTxRxMode(TX_EN);
CC2500_SetPower();
hopping_frequency_no = (hopping_frequency_no+FrSkyX_chanskip)%47;
@ -186,6 +186,7 @@ uint16_t ReadFrSkyX()
return 5200; // FCC
case FRSKY_DATA3:
CC2500_Strobe(CC2500_SIDLE);
CC2500_Strobe(CC2500_SFRX); //Flush the RXFIFO
CC2500_SetTxRxMode(RX_EN);
CC2500_Strobe(CC2500_SRX);
state++;
@ -238,7 +239,6 @@ uint16_t ReadFrSkyX()
else
telemetry_link=1; //Send telemetry out anyway
#endif
CC2500_Strobe(CC2500_SFRX); //Flush the RXFIFO
state = FRSKY_DATA1;
return 400; // FCC & LBT
}

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_REVISION 1
#define VERSION_PATCH_LEVEL 35
#define VERSION_PATCH_LEVEL 36
//******************
// Protocols