reformatted code and added the new defaults from @redpanther

This commit is contained in:
Rick van Hattem 2016-09-21 23:32:17 +02:00
parent da6dfc8ed4
commit 3feb905a00
2 changed files with 7 additions and 6 deletions

View File

@ -8,7 +8,8 @@
// hyperion local includes
#include "LedDeviceUdpH801.h"
LedDeviceUdpH801::LedDeviceUdpH801(const Json::Value &deviceConfig) : ProviderUdp(deviceConfig)
LedDeviceUdpH801::LedDeviceUdpH801(const Json::Value &deviceConfig)
: ProviderUdp(deviceConfig)
{
setConfig(deviceConfig);
}
@ -16,7 +17,7 @@ LedDeviceUdpH801::LedDeviceUdpH801(const Json::Value &deviceConfig) : ProviderUd
bool LedDeviceUdpH801::setConfig(const Json::Value &deviceConfig)
{
/* The H801 port is fixed */
_port = 30977;
ProviderUdp::setConfig(deviceConfig, 30977, "255.255.255.255");
/* 10ms seems to be a safe default for the wait time */
_LatchTime_ns = deviceConfig.get("latchtime", 10000000).asInt();