mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
reformatted code and added the new defaults from @redpanther
This commit is contained in:
parent
da6dfc8ed4
commit
3feb905a00
@ -8,7 +8,8 @@
|
|||||||
// hyperion local includes
|
// hyperion local includes
|
||||||
#include "LedDeviceUdpH801.h"
|
#include "LedDeviceUdpH801.h"
|
||||||
|
|
||||||
LedDeviceUdpH801::LedDeviceUdpH801(const Json::Value &deviceConfig) : ProviderUdp(deviceConfig)
|
LedDeviceUdpH801::LedDeviceUdpH801(const Json::Value &deviceConfig)
|
||||||
|
: ProviderUdp(deviceConfig)
|
||||||
{
|
{
|
||||||
setConfig(deviceConfig);
|
setConfig(deviceConfig);
|
||||||
}
|
}
|
||||||
@ -16,7 +17,7 @@ LedDeviceUdpH801::LedDeviceUdpH801(const Json::Value &deviceConfig) : ProviderUd
|
|||||||
bool LedDeviceUdpH801::setConfig(const Json::Value &deviceConfig)
|
bool LedDeviceUdpH801::setConfig(const Json::Value &deviceConfig)
|
||||||
{
|
{
|
||||||
/* The H801 port is fixed */
|
/* 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 */
|
/* 10ms seems to be a safe default for the wait time */
|
||||||
_LatchTime_ns = deviceConfig.get("latchtime", 10000000).asInt();
|
_LatchTime_ns = deviceConfig.get("latchtime", 10000000).asInt();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user