mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
HAL_Linux: use nullptr for vnav rcinput
this makes it clearer what is going on
This commit is contained in:
parent
0b83d45163
commit
9db0862d61
@ -164,8 +164,9 @@ static RCInput_Navio2 rcinDriver;
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_RST_ZYNQ
|
||||
static RCInput_RCProtocol rcinDriver{"/dev/ttyPS0", NULL};
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_VNAV
|
||||
// this is needed to allow for RC input using SERIALn_PROTOCOL=23
|
||||
static RCInput_RCProtocol rcinDriver{"/dev/null", NULL};
|
||||
// this is needed to allow for RC input using SERIALn_PROTOCOL=23. No fd is opened
|
||||
// in the linux driver and instead user needs to provide a uart via SERIALn_PROTOCOL
|
||||
static RCInput_RCProtocol rcinDriver{nullptr, nullptr};
|
||||
#else
|
||||
static RCInput rcinDriver;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user