else if (strcmp(token, "id") == 0) {
if (isQuery) iprintf(RESPONSE,"ID=%s\r\n", sysCfg.base);
else if (strlen(strValue)>=2){
strcpy(sysCfg.base, strValue);
CFG_Save();
system_restart();
}
Here's a bit of code - I update an ID for a unit, save the config to FLASH as normal (using the SDK function) -no problem up to now.... and then System_restart(). I get a restart message - then then all is well.
BUT if I do this after FLASHING THE UNIT - all is well until the restart - and a watchdog timer message kicks in. I've heard of variations of this from other people - it's as if there is something not quite right with the unit after it has been flashed. Can we have a system_restart() that works regardless?Statistics: Posted by scargill — Thu Aug 20, 2015 11:12 pm
]]>