Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: global.cpp
- Revision:
- 2:609dd3a73f33
- Parent:
- 1:f5ac63519541
diff -r f5ac63519541 -r 609dd3a73f33 global.cpp --- a/global.cpp Wed Mar 05 06:14:02 2014 -0800 +++ b/global.cpp Sat Mar 08 17:55:59 2014 -0800 @@ -56,7 +56,6 @@ **/ GlobalConfig::GlobalConfig(char *filename) { - char val[32]; printf("\r\nOpen config file: '%s'\r\n", filename); ConfigFile cfg(filename); if ( !cfg.IsOpen() ) @@ -65,14 +64,10 @@ } // IP settings - cfg.Value("net.ip", val, sizeof(val), "192.168.0.111"); - IpParse(val, ip); - cfg.Value("net.mask", val, sizeof(val), "255.255.255.0"); - IpParse(val, nm); - cfg.Value("net.gateway", val, sizeof(val), "192.168.0.1"); - IpParse(val, gw); - cfg.Value("net.dns", val, sizeof(val), "192.168.0.1"); - IpParse(val, dns); + cfg.Value("net.ip", ip, sizeof(ip), "192.168.0.111"); + cfg.Value("net.mask", nm, sizeof(nm), "255.255.255.0"); + cfg.Value("net.gateway", gw, sizeof(gw), "192.168.0.1"); + cfg.Value("net.dns", dns, sizeof(dns), "192.168.0.1"); cfg.Value("net.port", &port, 69); cfg.Value("net.dhcp", &dhcp, 0);