mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
HAL_ChibiOS: fixed periph overpower ifdef
fixes overcurrent logging on several boards
This commit is contained in:
parent
916b35eec8
commit
25bc128248
@ -432,7 +432,7 @@ void AnalogIn::update_power_flags(void)
|
||||
if (palReadLine(HAL_GPIO_PIN_VDD_5V_PERIPH_OC) == 1) {
|
||||
flags |= MAV_POWER_STATUS_PERIPH_OVERCURRENT;
|
||||
}
|
||||
#elif defined(HAL_GPIO_PIN_VDD_5V_PERIPH_bOC)
|
||||
#elif defined(HAL_GPIO_PIN_VDD_5V_PERIPH_nOC)
|
||||
if (palReadLine(HAL_GPIO_PIN_VDD_5V_PERIPH_nOC) == 0) {
|
||||
flags |= MAV_POWER_STATUS_PERIPH_OVERCURRENT;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user