AP_RCProtocol: tidy enablement RC FastSBUS support
use the the hwdef to turn it off on IOMCU
This commit is contained in:
parent
1326d1c3df
commit
8db14c2bbf
@ -24,14 +24,6 @@
|
||||
#define MAX_RCIN_CHANNELS 18
|
||||
#define MIN_RCIN_CHANNELS 5
|
||||
|
||||
#ifndef AP_RCPROTOCOL_FASTSBUS_ENABLED
|
||||
#ifdef IOMCU_FW
|
||||
#define AP_RCPROTOCOL_FASTSBUS_ENABLED 0
|
||||
#else
|
||||
#define AP_RCPROTOCOL_FASTSBUS_ENABLED 1
|
||||
#endif
|
||||
#endif
|
||||
|
||||
class AP_RCProtocol_Backend;
|
||||
|
||||
class AP_RCProtocol {
|
||||
|
@ -7,6 +7,10 @@
|
||||
#define AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED 1
|
||||
#endif
|
||||
|
||||
#ifndef AP_RCPROTOCOL_FASTSBUS_ENABLED
|
||||
#define AP_RCPROTOCOL_FASTSBUS_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED
|
||||
#endif
|
||||
|
||||
#ifndef AP_RCPROTOCOL_FPORT_ENABLED
|
||||
#define AP_RCPROTOCOL_FPORT_ENABLED AP_RCPROTOCOL_BACKEND_DEFAULT_ENABLED && AP_FRSKY_SPORT_TELEM_ENABLED
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user