From ea995f6378f7f6a6f8b6b1f7df29e0af7437f7a1 Mon Sep 17 00:00:00 2001 From: Aurelien Jarno Date: Mon, 29 Apr 2024 22:41:27 +0200 Subject: [PATCH] lorawan/nvm: do not call settings_save() after writing individual settings The lorawan subsystem do not use settings handler, and instead uses individual calls to settings_save_one(). With this strategy there is no need to call settings_save() at the end. Signed-off-by: Aurelien Jarno --- subsys/lorawan/nvm/lorawan_nvm_settings.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/subsys/lorawan/nvm/lorawan_nvm_settings.c b/subsys/lorawan/nvm/lorawan_nvm_settings.c index 3b062299c5139f..b56784ad6272e6 100644 --- a/subsys/lorawan/nvm/lorawan_nvm_settings.c +++ b/subsys/lorawan/nvm/lorawan_nvm_settings.c @@ -77,8 +77,6 @@ static void lorawan_nvm_save_settings(uint16_t nvm_notify_flag) } } } - - settings_save(); } void lorawan_nvm_data_mgmt_event(uint16_t flags)