mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-12 17:57:53 +00:00
Cleanup tab indent
This commit is contained in:
parent
8012de80a4
commit
6b9d7e665c
@ -212,15 +212,6 @@ static void __attribute__((unused)) BAYANG_init()
|
|||||||
NRF24L01_WriteReg(NRF24L01_1C_DYNPD, 0x00); // Disable dynamic payload length on all pipes
|
NRF24L01_WriteReg(NRF24L01_1C_DYNPD, 0x00); // Disable dynamic payload length on all pipes
|
||||||
NRF24L01_WriteReg(NRF24L01_1D_FEATURE, 0x01);
|
NRF24L01_WriteReg(NRF24L01_1D_FEATURE, 0x01);
|
||||||
NRF24L01_Activate(0x73);
|
NRF24L01_Activate(0x73);
|
||||||
|
|
||||||
switch(sub_protocol) {
|
|
||||||
case X16_AH:
|
|
||||||
bayang_bind_chan = BAYANG_RF_BIND_CHANNEL_X16_AH;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
bayang_bind_chan = BAYANG_RF_BIND_CHANNEL;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint16_t BAYANG_callback()
|
uint16_t BAYANG_callback()
|
||||||
@ -291,6 +282,14 @@ uint16_t initBAYANG(void)
|
|||||||
BAYANG_initialize_txid();
|
BAYANG_initialize_txid();
|
||||||
BAYANG_init();
|
BAYANG_init();
|
||||||
packet_count=0;
|
packet_count=0;
|
||||||
|
switch (sub_protocol) {
|
||||||
|
case X16_AH:
|
||||||
|
bayang_bind_chan = BAYANG_RF_BIND_CHANNEL_X16_AH;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
bayang_bind_chan = BAYANG_RF_BIND_CHANNEL;
|
||||||
|
break;
|
||||||
|
}
|
||||||
#ifdef BAYANG_HUB_TELEMETRY
|
#ifdef BAYANG_HUB_TELEMETRY
|
||||||
init_frskyd_link_telemetry();
|
init_frskyd_link_telemetry();
|
||||||
telemetry_lost=1; // do not send telemetry to TX right away until we have a TX_RSSI value to prevent warning message...
|
telemetry_lost=1; // do not send telemetry to TX right away until we have a TX_RSSI value to prevent warning message...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user