HAL_PX4: fixed DSM bind on Pixracer

This commit is contained in:
Andrew Tridgell 2016-10-13 13:27:27 +11:00
parent 5e829e7720
commit e78651e8f2
1 changed files with 4 additions and 1 deletions

View File

@ -121,7 +121,10 @@ bool PX4RCInput::rc_bind(int dsmMode)
{
int fd = open("/dev/px4io", 0);
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;
}