mgmt: hawkbit: use settings_save_subtree()

use settings_save_subtree() instead of settings_save() to
only save the hawkbit settings

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2024-12-21 19:23:05 +01:00 committed by Benjamin Cabé
commit b500f4c557

View file

@ -797,7 +797,7 @@ int hawkbit_set_config(struct hawkbit_runtime_config *config)
LOG_DBG("configured %s: %d", "hawkbit/tls_tag", hb_cfg.tls_tag);
}
#endif /* CONFIG_HAWKBIT_USE_DYNAMIC_CERT_TAG */
settings_save();
settings_save_subtree("hawkbit");
k_sem_give(&probe_sem);
} else {
LOG_WRN("failed setting config");