HAL_ChibiOS: fixed periph overpower ifdef

fixes overcurrent logging on several boards
This commit is contained in:
Andrew Tridgell 2020-10-11 14:44:01 +11:00
parent 916b35eec8
commit 25bc128248

View File

@ -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;
}