AP_RCProtocol: tidy enablement RC FastSBUS support

use the the hwdef to turn it off on IOMCU
This commit is contained in:
Peter Barker 2023-03-19 13:00:34 +11:00 committed by Andrew Tridgell
parent 1326d1c3df
commit 8db14c2bbf
2 changed files with 4 additions and 8 deletions

View File

@ -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 {

View File

@ -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