mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-09 23:58:10 +00:00
CG023 small change
This commit is contained in:
parent
08dc0db2e2
commit
54accbf21f
@ -237,13 +237,7 @@ uint16_t CG023_callback()
|
|||||||
bind_counter--;
|
bind_counter--;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return packet_period;
|
||||||
if(sub_protocol==CG023)
|
|
||||||
return CG023_PACKET_PERIOD;
|
|
||||||
else
|
|
||||||
if(sub_protocol==YD829)
|
|
||||||
return YD829_PACKET_PERIOD;
|
|
||||||
return H8_3D_PACKET_PERIOD;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __attribute__((unused)) CG023_initialize_txid()
|
static void __attribute__((unused)) CG023_initialize_txid()
|
||||||
@ -276,11 +270,13 @@ uint16_t initCG023(void)
|
|||||||
CG023_initialize_txid();
|
CG023_initialize_txid();
|
||||||
CG023_init();
|
CG023_init();
|
||||||
if(sub_protocol==CG023)
|
if(sub_protocol==CG023)
|
||||||
return CG023_INITIAL_WAIT+CG023_PACKET_PERIOD;
|
packet_period=CG023_PACKET_PERIOD;
|
||||||
else
|
else
|
||||||
if(sub_protocol==YD829)
|
if(sub_protocol==YD829)
|
||||||
return CG023_INITIAL_WAIT+YD829_PACKET_PERIOD;
|
packet_period=YD829_PACKET_PERIOD;
|
||||||
return CG023_INITIAL_WAIT+H8_3D_PACKET_PERIOD;
|
else
|
||||||
|
packet_period=H8_3D_PACKET_PERIOD;
|
||||||
|
return CG023_INITIAL_WAIT+YD829_PACKET_PERIOD;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user