ld_pwr_exc_protector: disable irq after pwr off

-setting 0V threshold during power off might trigger IRQ
This commit is contained in:
linuswck 2024-09-10 15:23:14 +08:00
parent 89a1270c02
commit 0aeffdbf7b
1 changed files with 2 additions and 1 deletions

View File

@ -270,7 +270,8 @@ impl LdPwrExcProtector {
pub fn pwr_off() {
if let Some(ref mut wdg) = LdPwrExcProtector::get() {
wdg.alarm_status.pwr_engaged = false;
wdg.phy.pwr_en_ch0.set_low()
wdg.phy.pwr_en_ch0.set_low();
LdPwrExcProtector::disable_watchdog_interrupt();
}
}