Implemented icsneoLoadDefaultSettings to apply the default settings to the device.

This commit is contained in:
Joseph Niksa
2023-04-20 05:00:46 +00:00
parent 4fa813ccbc
commit 83f6c611fe
3 changed files with 12 additions and 1 deletions
+9
View File
@@ -1079,6 +1079,15 @@ int LegacyDLLExport icsneoGetDeviceSettings(void* hObject, SDeviceSettings* pSet
return !!icsneo_settingsReadStructure(device, &pSettings->Settings, iNumBytes - offset);
}
int LegacyDLLExport icsneoLoadDefaultSettings(void* hObject)
{
if (!icsneoValidateHObject(hObject))
return false;
neodevice_t* device = reinterpret_cast<neodevice_t*>(hObject);
return icsneo_settingsApplyDefaults(device);
}
int LegacyDLLExport icsneoSetBitRateEx(void* hObject, unsigned long BitRate, int NetworkID, int iOptions)
{
if (!icsneoValidateHObject(hObject))