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

sys/pm_layered: change PM_BLOCKER_INITIAL to single value

This commit is contained in:
Kaspar Schleiser 2020-02-14 12:05:01 +01:00
parent da78d03e95
commit f66fd7b1ca

View File

@ -30,7 +30,7 @@
#endif
#ifndef PM_BLOCKER_INITIAL
#define PM_BLOCKER_INITIAL { .val_u32 = 0x01010101 }
#define PM_BLOCKER_INITIAL 0x01010101 /* block all by default */
#endif
/**
@ -44,7 +44,7 @@ typedef union {
/**
* @brief Global variable for keeping track of blocked modes
*/
volatile pm_blocker_t pm_blocker = PM_BLOCKER_INITIAL;
volatile pm_blocker_t pm_blocker = { .val_u32 = PM_BLOCKER_INITIAL };
void pm_set_lowest(void)
{