soapy lms - fix writeSetting to not throw every time
WriteParam is called in the else statement,
so we only throw when WriteParam fails,
just like in the readSetting() call
@@ -853,10 +853,9 @@ void SoapyLMS7::writeSetting(const int direction, const size_t channel, const st
uint16_t val = std::stoi(value);
if (lms7Device->WriteParam(key,val,channel)!=-1)
return;
- }
-
throw std::runtime_error("unknown setting key: "+key);
}
+}
std::string SoapyLMS7::readSetting(const std::string &key) const
{
