Plusieurs développements, dont l'implémentation du endian Intel
This commit is contained in:
@@ -73,6 +73,9 @@ int CSystemConfig::LoadConfig()
|
||||
//Load general program settings
|
||||
*InputStream >> mSaveLocalLogFile;
|
||||
|
||||
//Load CAN Watchdog parameters
|
||||
*InputStream >> mCANWatchdogParams;
|
||||
|
||||
|
||||
ConfigFile->close();
|
||||
delete ConfigFile;
|
||||
@@ -124,6 +127,9 @@ int CSystemConfig::SaveConfig()
|
||||
//Save the general system parameters
|
||||
*OutputStream << mSaveLocalLogFile;
|
||||
|
||||
//Save the CAN Watchdog params
|
||||
*OutputStream << mCANWatchdogParams;
|
||||
|
||||
ConfigFile->flush();
|
||||
ConfigFile->close();
|
||||
|
||||
@@ -166,6 +172,19 @@ CCloudParams *CSystemConfig::GetCloudParams()
|
||||
return &mCloudLoggingParams;
|
||||
}
|
||||
|
||||
CCANWatchdogConfig *CSystemConfig::GetCANWatchdogConfig()
|
||||
{
|
||||
return &mCANWatchdogParams;
|
||||
}
|
||||
|
||||
int CSystemConfig::SetCANWatchdogConfig(CCANWatchdogConfig *Config)
|
||||
{
|
||||
if(Config == 0)
|
||||
return RET_GENERAL_ERROR;
|
||||
|
||||
mCANWatchdogParams = *Config;
|
||||
}
|
||||
|
||||
int CSystemConfig::SetCloudParams(CCloudParams *CloudParams)
|
||||
{
|
||||
if(CloudParams == 0)
|
||||
|
||||
Reference in New Issue
Block a user