1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

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
void pm_off(void)
{
pm_blocker.val_u32 = 0;
pm_set_lowest();
while(1) {}
irq_disable();
while(1) {
pm_set(0);
}
}
#endif