Browse Source

AP_HAL_PX4: compile error fix

master
Randy Mackay 12 years ago committed by Andrew Tridgell
parent
commit
07abfc59ac
  1. 2
      libraries/AP_HAL_PX4/GPIO.cpp

2
libraries/AP_HAL_PX4/GPIO.cpp

@ -209,10 +209,12 @@ void PX4GPIO::toggle(uint8_t pin) @@ -209,10 +209,12 @@ void PX4GPIO::toggle(uint8_t pin)
ioctl(_tone_alarm_fd, TONE_SET_ALARM, 0); // Alarm off !!
break;
#ifdef CONFIG_ARCH_BOARD_PX4IO_V1
case PX4_GPIO_EXT_RELAY_PIN: // Ext Relay
ioctl(_gpio_fd, GPIO_CLEAR, GPIO_EXT_1);
ioctl(_gpio_fd, GPIO_SET, GPIO_EXT_1);
break;
#endif
}
}

Loading…
Cancel
Save