Skip to content
Snippets Groups Projects
Commit 31cee0e7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

The node_num isn's stored in the node.ini file, so no need to "fix it"

This ancient bit of was re-writing node.ini files needlessly
parent 9dff686a
No related branches found
No related tags found
1 merge request!455Update branch with changes from master
......@@ -182,10 +182,7 @@ void node_menu()
prep_dir(cfg.ctrl_dir, cfg.node_dir, sizeof(cfg.node_dir));
load_node_cfg(&cfg,error, sizeof(error));
if (cfg.node_num != i + 1) { /* Node number isn't right? */
cfg.node_num = i + 1; /* so fix it */
save_node_cfg(&cfg); /* and write it back */
}
cfg.node_num = i + 1;
node_cfg();
free_node_cfg(&cfg);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment