mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 01:18:29 -04:00
HAL_PX4: fixed DSM bind on Pixracer
This commit is contained in:
parent
5e829e7720
commit
e78651e8f2
@ -121,7 +121,10 @@ bool PX4RCInput::rc_bind(int dsmMode)
|
|||||||
{
|
{
|
||||||
int fd = open("/dev/px4io", 0);
|
int fd = open("/dev/px4io", 0);
|
||||||
if (fd == -1) {
|
if (fd == -1) {
|
||||||
hal.console->printf("RCInput: failed to open /dev/px4io\n");
|
fd = open("/dev/px4fmu", 0);
|
||||||
|
}
|
||||||
|
if (fd == -1) {
|
||||||
|
hal.console->printf("RCInput: failed to open /dev/px4io or /dev/px4fmu\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user