diff options
Diffstat (limited to 'board/zinger/usb_pd_policy.c')
-rw-r--r-- | board/zinger/usb_pd_policy.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/board/zinger/usb_pd_policy.c b/board/zinger/usb_pd_policy.c index 420e22776d..f3d817f728 100644 --- a/board/zinger/usb_pd_policy.c +++ b/board/zinger/usb_pd_policy.c @@ -201,23 +201,14 @@ void pd_power_supply_reset(int port) int pd_board_checks(void) { int vbus_volt, vbus_amp; - int watchdog_enabled = STM32_ADC_CFGR1 & (1 << 23); int ovp_idx; /* Reload the watchdog */ STM32_IWDG_KR = STM32_IWDG_KR_RELOAD; - if (watchdog_enabled) - /* if the watchdog is enabled, stop it to do other readings */ - adc_disable_watchdog(); - vbus_volt = adc_read_channel(ADC_CH_V_SENSE); vbus_amp = adc_read_channel(ADC_CH_A_SENSE); - if (watchdog_enabled) - /* re-enable fast OCP */ - adc_enable_watchdog(ADC_CH_A_SENSE, MAX_CURRENT_FAST, 0); - if (fault == FAULT_FAST_OCP) { debug_printf("Fast OverCurrent\n"); fault = FAULT_OCP; |