Skip to content

Commit

Permalink
samples: subsys: mgmt: smp_svr: Fix dupicate fs mgmt registration
Browse files Browse the repository at this point in the history
This fixes an issue with the filesystem mcumgr being registered twice
in the sample application which resolves an issue with an endless loop
if a mcumgr handler is used which is not registered.

Signed-off-by: Jamie McCrae <[email protected]>
  • Loading branch information
Jamie McCrae authored and carlescufi committed Mar 24, 2022
1 parent 4ab7bdd commit 2681c6d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions samples/subsys/mgmt/mcumgr/smp_svr/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ void main(void)
#ifdef CONFIG_MCUMGR_CMD_SHELL_MGMT
shell_mgmt_register_group();
#endif
#ifdef CONFIG_MCUMGR_CMD_FS_MGMT
fs_mgmt_register_group();
#endif
#ifdef CONFIG_MCUMGR_SMP_BT
start_smp_bluetooth();
#endif
Expand Down

0 comments on commit 2681c6d

Please sign in to comment.