forked from M-Labs/kirdy
ld_pwr_exc_protector: disable irq after pwr off
-setting 0V threshold during power off might trigger IRQ
This commit is contained in:
parent
89a1270c02
commit
0aeffdbf7b
@ -270,7 +270,8 @@ impl LdPwrExcProtector {
|
|||||||
pub fn pwr_off() {
|
pub fn pwr_off() {
|
||||||
if let Some(ref mut wdg) = LdPwrExcProtector::get() {
|
if let Some(ref mut wdg) = LdPwrExcProtector::get() {
|
||||||
wdg.alarm_status.pwr_engaged = false;
|
wdg.alarm_status.pwr_engaged = false;
|
||||||
wdg.phy.pwr_en_ch0.set_low()
|
wdg.phy.pwr_en_ch0.set_low();
|
||||||
|
LdPwrExcProtector::disable_watchdog_interrupt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user