HAL_Linux: use nullptr for vnav rcinput

this makes it clearer what is going on
This commit is contained in:
Andrew Tridgell 2021-01-20 10:23:45 +11:00
parent 0b83d45163
commit 9db0862d61
1 changed files with 3 additions and 2 deletions

View File

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