Browse Source

HAL_Chibios: fixed return for read on invalid gpio pin

mission-4.1.18
Andrew Tridgell 7 years ago
parent
commit
b57f8f01c6
  1. 1
      libraries/AP_HAL_ChibiOS/GPIO.cpp

1
libraries/AP_HAL_ChibiOS/GPIO.cpp

@ -148,6 +148,7 @@ uint8_t ChibiGPIO::read(uint8_t pin) @@ -148,6 +148,7 @@ uint8_t ChibiGPIO::read(uint8_t pin)
if (g) {
return palReadLine(g->pal_line);
}
return 0;
}
void ChibiGPIO::write(uint8_t pin, uint8_t value)

Loading…
Cancel
Save