1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Server: Web API: implemented /sdrangel/preset (PUT)

This commit is contained in:
f4exb
2017-12-20 14:31:17 +01:00
parent ffea25fe71
commit 894d926329
8 changed files with 120 additions and 6 deletions
+1 -1
View File
@@ -379,7 +379,7 @@ int WebAPIAdapterGUI::instancePresetPatch(
SWGSDRangel::SWGPresetIdentifier *presetIdentifier = query.getPreset();
int nbDeviceSets = m_mainWindow.m_deviceUIs.size();
if (deviceSetIndex > nbDeviceSets)
if (deviceSetIndex >= nbDeviceSets)
{
*error.getMessage() = QString("There is no device set at index %1. Number of device sets is %2").arg(deviceSetIndex).arg(nbDeviceSets);
return 404;