1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-31 09:21:19 +01:00

Merge pull request #8505 from gebart/pr/pm-layered-while-loop-braces

pm_layered: Use {} for empty while loops
This commit is contained in:
Alexandre Abadie 2018-02-01 09:04:30 +01:00 committed by GitHub
commit ef20fe7bb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,10 +88,10 @@ void pm_unblock(unsigned mode)
}
#ifndef PROVIDES_PM_LAYERED_OFF
void pm_off(void)
void pm_off(void)
{
pm_blocker.val_u32 = 0;
pm_set_lowest();
while(1);
while(1) {}
}
#endif