Merge pull request #13978 from maribu/fix_pm_off

sys/pm: Fix behavior of fallback pm_off() implementation
This commit is contained in:
benpicco 2020-05-01 14:09:48 +02:00 committed by GitHub
commit ee7ec7e3ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,8 +87,9 @@ pm_blocker_t pm_get_blocker(void)
#ifndef PROVIDES_PM_LAYERED_OFF #ifndef PROVIDES_PM_LAYERED_OFF
void pm_off(void) void pm_off(void)
{ {
pm_blocker.val_u32 = 0; irq_disable();
pm_set_lowest(); while(1) {
while(1) {} pm_set(0);
}
} }
#endif #endif