1
0
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:
Kévin Roussel 2014-01-08 09:59:05 +01:00
parent e6d4a0b73a
commit 32a6e168ff

View File

@ -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) {