Device detection CAN reporting continuance

This commit is contained in:
2024-03-03 16:55:30 -05:00
parent 56b30216c9
commit 4400ff6144
21 changed files with 1630 additions and 25 deletions
+24
View File
@@ -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;
}