Code: Select all
ConfigRecord new_rec;
memcpy(&new_rec, &gConfigRec, sizeof(new_rec));
if (new_rec.m_Flags == 1) // if watchdog enabled
{
new_rec.m_Flags = 0; // WD disable
UpdateConfigRecord(&new_rec);
ForceReboot();
}
Code: Select all
ConfigRecord new_rec;
memcpy(&new_rec, &gConfigRec, sizeof(new_rec));
if (new_rec.m_Flags == 1) // if watchdog enabled
{
new_rec.m_Flags = 0; // WD disable
UpdateConfigRecord(&new_rec);
ForceReboot();
}
Code: Select all
extern NV_SettingsStruct *pData;