More improved dumps

This commit is contained in:
2022-08-21 00:53:41 +02:00
parent aa3d83d8a4
commit 196f56b988
16 changed files with 136 additions and 113 deletions

View File

@ -33,12 +33,12 @@ int update =1;
static int update_cb(struct cw_ElemHandlerParams * params, uint8_t * elems_ptr, int elems_len)
{
cw_dbg(DBG_X," **** Configuration Update Request Received ***");
// cw_dbg(DBG_X," **** Configuration Update Request Received ***");
// cw_cfg_dump(params->conn->global_cfg);
cw_cfg_copy(params->cfg, params->conn->global_cfg);
cw_cfg_copy(params->cfg, params->conn->global_cfg,DBG_CFG_UPDATES,"GlobalCfg");
cw_cfg_save(bootcfg.cfgfilename, params->conn->global_cfg,
"#\n# This file is igenerated by WAT\n# If you edit this, your cahnges might be overwritten\n#\n");
cw_dbg(DBG_X," **** Configuration Update Request Received Saved ***");
// cw_dbg(DBG_X," **** Configuration Update Request Received Saved ***");
return 0;
}