diff --git a/source/Core/BSP/Miniware/IRQ.cpp b/source/Core/BSP/Miniware/IRQ.cpp index 05689ef5..5afa4bf1 100644 --- a/source/Core/BSP/Miniware/IRQ.cpp +++ b/source/Core/BSP/Miniware/IRQ.cpp @@ -36,6 +36,10 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { } bool getFUS302IRQLow() { +#ifdef POW_PD // Return true if the IRQ line is still held low return HAL_GPIO_ReadPin(INT_PD_GPIO_Port, INT_PD_Pin) == GPIO_PIN_RESET; +#else + return false; +#endif } \ No newline at end of file