Skip to content

Commit 20d9727

Browse files
committed
Enabled by default the NVM context storage
1 parent e862e38 commit 20d9727

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

src/apps/LoRaMac/common/NvmCtxMgmt.c

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,20 @@
3838
#include "nvmm.h"
3939

4040
/*!
41-
* Enables/Disables the context storage management storage at all. Must be enabled for LoRaWAN 1.1.x.
42-
* WARNING: Still under development and not tested yet.
41+
* Enables/Disables the context storage management storage.
42+
* Must be enabled for LoRaWAN 1.0.4 or later.
4343
*/
44-
#define CONTEXT_MANAGEMENT_ENABLED 0
44+
#ifndef CONTEXT_MANAGEMENT_ENABLED
45+
#define CONTEXT_MANAGEMENT_ENABLED 1
46+
#endif
4547

4648
/*!
47-
* Enables/Disables maximum persistent context storage management. All module contexts will be saved on a non-volatile memory.
48-
* WARNING: Still under development and not tested yet.
49+
* Enables/Disables maximum persistent context storage management.
50+
* All contexts will be saved.
4951
*/
50-
#define MAX_PERSISTENT_CTX_MGMT_ENABLED 0
52+
#ifndef MAX_PERSISTENT_CTX_MGMT_ENABLED
53+
#define MAX_PERSISTENT_CTX_MGMT_ENABLED 1
54+
#endif
5155

5256
#if ( MAX_PERSISTENT_CTX_MGMT_ENABLED == 1 )
5357
#define NVM_CTX_STORAGE_MASK 0xFF

0 commit comments

Comments
 (0)