diff --git a/libsrc/leddevice/LedSpiDevice.cpp b/libsrc/leddevice/LedSpiDevice.cpp index 7ff12a62..bc2e3b66 100644 --- a/libsrc/leddevice/LedSpiDevice.cpp +++ b/libsrc/leddevice/LedSpiDevice.cpp @@ -30,7 +30,7 @@ LedSpiDevice::~LedSpiDevice() bool LedSpiDevice::setConfig(const Json::Value &deviceConfig) { - _deviceName = deviceConfig.get("output","/dev/spidev.0.0").asString(); + _deviceName = deviceConfig.get("output","/dev/spidev0.0").asString(); _baudRate_Hz = deviceConfig.get("rate",1000000).asInt(); _latchTime_ns = deviceConfig.get("latchtime",0).asInt(); _spiMode = deviceConfig.get("spimode",SPI_MODE_0).asInt(); diff --git a/libsrc/leddevice/LedUdpDevice.cpp b/libsrc/leddevice/LedUdpDevice.cpp index 25e6d79b..b0db9fc9 100644 --- a/libsrc/leddevice/LedUdpDevice.cpp +++ b/libsrc/leddevice/LedUdpDevice.cpp @@ -30,10 +30,10 @@ LedUdpDevice::~LedUdpDevice() bool LedUdpDevice::setConfig(const Json::Value &deviceConfig) { - QHostInfo info = QHostInfo::fromName( QString::fromStdString(deviceConfig["output"].asString()) ); + QHostInfo info = QHostInfo::fromName( QString::fromStdString(deviceConfig["host"].asString()) ); if (info.addresses().isEmpty()) { - throw("invalid target address"); + throw std::runtime_error("invalid target address"); } _address = info.addresses().first(); _port = deviceConfig["port"].asUInt();