AP_RPM: fixed build for aero-fc

This commit is contained in:
Andrew Tridgell 2017-04-07 17:45:10 +10:00
parent 23c18335a3
commit 1c5607b42d
1 changed files with 4 additions and 1 deletions

View File

@ -72,6 +72,8 @@ void AP_RPM_Pin::update(void)
if (last_pin != get_pin()) {
last_pin = get_pin();
uint32_t gpio = 0;
#ifdef GPIO_GPIO0_INPUT
switch (last_pin) {
case 50:
gpio = GPIO_GPIO0_INPUT;
@ -92,6 +94,7 @@ void AP_RPM_Pin::update(void)
gpio = GPIO_GPIO5_INPUT;
break;
}
#endif // GPIO_GPIO5_INPUT
// uninstall old handler if installed
if (last_gpio != 0) {