mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 00:05:33 +03:00
Spectrum bind code to be more geenic
Actualy only activated for the NAZE taget for USART2 #define SPEKTRUM_BIND #define BIND_PORT GPIOA #define BIND_PIN Pin_3 This is to activate the Hardware bind pug feature #define HARDWARE_BIND_PLUG #define BINDPLUG_PORT GPIOB #define BINDPLUG_PIN Pin_5 can now be easyly added and configured for other tagets after testing.
This commit is contained in:
parent
3aaaa3f9f5
commit
1766857da6
3 changed files with 14 additions and 7 deletions
|
@ -150,6 +150,7 @@ void init(void)
|
|||
|
||||
systemInit();
|
||||
|
||||
#ifdef SPEKTRUM_BIND
|
||||
// Spektrum sattelite bind - ported from Baseflight
|
||||
if (feature(FEATURE_RX_SERIAL)) {
|
||||
switch (masterConfig.rxConfig.serialrx_provider) {
|
||||
|
@ -162,6 +163,7 @@ void init(void)
|
|||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
delay(100);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue