mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
refresh time for all devices + schema fixes (#305)
* refresh for all :-) remove dups * - integrate refresh leds for all devices - fix schemas for led devices * add minimum for rewrite time * rewriteTime: add missing info in config examples
This commit is contained in:
@@ -18,6 +18,7 @@ LedDevice::LedDevice()
|
||||
, _ledBuffer(0)
|
||||
, _deviceReady(true)
|
||||
, _refresh_timer()
|
||||
, _refresh_timer_interval(0)
|
||||
{
|
||||
LedDevice::getLedDeviceSchemas();
|
||||
|
||||
@@ -49,6 +50,12 @@ void LedDevice::setActiveDevice(std::string dev)
|
||||
_activeDevice = dev;
|
||||
}
|
||||
|
||||
bool LedDevice::init(const QJsonObject &deviceConfig)
|
||||
{
|
||||
_refresh_timer.setInterval( deviceConfig["rewriteTime"].toInt(_refresh_timer_interval) );
|
||||
return true;
|
||||
}
|
||||
|
||||
QJsonObject LedDevice::getLedDeviceSchemas()
|
||||
{
|
||||
// make sure the resources are loaded (they may be left out after static linking)
|
||||
|
Reference in New Issue
Block a user