mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 23:11:19 +01:00
function 'lpm_get()' now returns LPM_UNKNOWN by default
This commit is contained in:
parent
e6d4a0b73a
commit
32a6e168ff
@ -62,7 +62,7 @@ enum lpm_mode lpm_set(enum lpm_mode target)
|
||||
/* Return the current LPM mode of the MSP430 MCU. */
|
||||
enum lpm_mode lpm_get(void)
|
||||
{
|
||||
enum lpm_mode current_mode;
|
||||
enum lpm_mode current_mode = LPM_UNKNOWN;
|
||||
|
||||
unsigned int current_sr = __read_status_register();
|
||||
switch (current_sr & LPM_MASK_SR) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user