mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
webui: initial support for leddevice options (#232)
* initial support for leddevice options * fix schema and editor init * fix led editor labels and schema * add some led schemas * led config: insert current values. not yet perfect, but it works
This commit is contained in:
@@ -34,7 +34,7 @@ bool LedDeviceSk6812SPI::setConfig(const Json::Value &deviceConfig)
|
||||
{
|
||||
ProviderSpi::setConfig(deviceConfig);
|
||||
|
||||
_baudRate_Hz = deviceConfig.get("rate",3000000).asInt();
|
||||
_baudRate_Hz = deviceConfig.get("rate",3000000).asInt();
|
||||
if ( (_baudRate_Hz < 2050000) || (_baudRate_Hz > 4000000) )
|
||||
{
|
||||
Warning(_log, "SPI rate %d outside recommended range (2050000 -> 4000000)", _baudRate_Hz);
|
||||
|
Reference in New Issue
Block a user