subsys/mgmt/mcumgr: Fix collision with user defined groups

The commit moves definition of Zephyr specific mcumgr basic group to
PERUSER - 1.  This has been done to avoid collision with application
specific groups, defined by users.

Signed-off-by: Dominik Ermel <dominik.ermel@nordicsemi.no>
This commit is contained in:
Dominik Ermel 2021-07-28 11:21:33 +00:00 committed by Carles Cufí
commit dfa3930196

View file

@ -12,9 +12,10 @@
extern "C" { extern "C" {
#endif #endif
/* The file contains definitions of Zephyr specific mgmt commands */ /* The file contains definitions of Zephyr specific mgmt commands. The group numbers decrease
* from PERUSER to avoid collision with user defined groups.
#define ZEPHYR_MGMT_GRP_BASE MGMT_GROUP_ID_PERUSER */
#define ZEPHYR_MGMT_GRP_BASE (MGMT_GROUP_ID_PERUSER - 1)
/* Basic group */ /* Basic group */
#define ZEPHYR_MGMT_GRP_BASIC ZEPHYR_MGMT_GRP_BASE #define ZEPHYR_MGMT_GRP_BASIC ZEPHYR_MGMT_GRP_BASE