Device detection CAN reporting continuance
This commit is contained in:
@@ -84,6 +84,12 @@ int CSystemConfig::LoadConfig()
|
||||
*InputStream >> mCPUWatchdogParams;
|
||||
}
|
||||
|
||||
//Load the device devection reporting params
|
||||
if(FileVersion > 1)
|
||||
{
|
||||
*InputStream >> mDeviceDetectionParams;
|
||||
}
|
||||
|
||||
|
||||
|
||||
ConfigFile->close();
|
||||
@@ -142,6 +148,9 @@ int CSystemConfig::SaveConfig()
|
||||
//Save the CPU Watchdog params
|
||||
*OutputStream << mCPUWatchdogParams;
|
||||
|
||||
//Save the device detection reporting params
|
||||
*OutputStream << mDeviceDetectionParams;
|
||||
|
||||
ConfigFile->flush();
|
||||
ConfigFile->close();
|
||||
|
||||
@@ -238,3 +247,18 @@ int CSystemConfig::SetCPUWatchdogPArams(CCPUWatchdogConfig *CPUWatchdogParams)
|
||||
mCPUWatchdogParams = *CPUWatchdogParams;
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
int CSystemConfig::SetDeviceDetectionConfig(CDeviceDetectionConfig *DeviceDetectconfig)
|
||||
{
|
||||
if(DeviceDetectconfig == 0)
|
||||
{
|
||||
return RET_GENERAL_ERROR;
|
||||
}
|
||||
|
||||
mDeviceDetectionParams = *DeviceDetectconfig;
|
||||
}
|
||||
|
||||
CDeviceDetectionConfig* CSystemConfig::GetDeviceDetectionConfig()
|
||||
{
|
||||
return &mDeviceDetectionParams;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user