mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-03 03:57:51 +00:00
F949G: another try...
This commit is contained in:
parent
149554e61c
commit
08404f9223
@ -105,6 +105,15 @@ static void __attribute__((unused)) MT99XX_send_packet()
|
|||||||
{
|
{
|
||||||
static uint8_t seq_num=0;
|
static uint8_t seq_num=0;
|
||||||
|
|
||||||
|
//Set RF freq
|
||||||
|
if(sub_protocol == LS)
|
||||||
|
XN297_RFChannel(0x2D); // LS always transmits on the same channel
|
||||||
|
else
|
||||||
|
if(sub_protocol==FY805)
|
||||||
|
XN297_RFChannel(0x4B); // FY805 always transmits on the same channel
|
||||||
|
else // MT99 & H7 & YZ & A180 & DRAGON & F949G
|
||||||
|
XN297_Hopping(hopping_frequency_no);
|
||||||
|
|
||||||
if(IS_BIND_IN_PROGRESS)
|
if(IS_BIND_IN_PROGRESS)
|
||||||
{
|
{
|
||||||
//Bind packet
|
//Bind packet
|
||||||
@ -263,15 +272,7 @@ static void __attribute__((unused)) MT99XX_send_packet()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//RF freq
|
//Hopp
|
||||||
if(sub_protocol == LS)
|
|
||||||
XN297_RFChannel(0x2D); // LS always transmits on the same channel
|
|
||||||
else
|
|
||||||
if(sub_protocol==FY805)
|
|
||||||
XN297_RFChannel(0x4B); // FY805 always transmits on the same channel
|
|
||||||
else // MT99 & H7 & YZ & A180 & DRAGON & F949G
|
|
||||||
XN297_Hopping(hopping_frequency_no);
|
|
||||||
|
|
||||||
hopping_frequency_no++;
|
hopping_frequency_no++;
|
||||||
if(sub_protocol == YZ || sub_protocol == A180 || sub_protocol == DRAGON || sub_protocol == F949G)
|
if(sub_protocol == YZ || sub_protocol == A180 || sub_protocol == DRAGON || sub_protocol == F949G)
|
||||||
hopping_frequency_no++; // skip every other channel
|
hopping_frequency_no++; // skip every other channel
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 3
|
#define VERSION_MINOR 3
|
||||||
#define VERSION_REVISION 2
|
#define VERSION_REVISION 2
|
||||||
#define VERSION_PATCH_LEVEL 92
|
#define VERSION_PATCH_LEVEL 93
|
||||||
|
|
||||||
#define MODE_SERIAL 0
|
#define MODE_SERIAL 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user