mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
@@ -7,10 +7,6 @@ LedDeviceTemplate::LedDeviceTemplate(const QJsonObject &deviceConfig)
|
||||
_deviceReady = false;
|
||||
}
|
||||
|
||||
LedDeviceTemplate::~LedDeviceTemplate()
|
||||
{
|
||||
}
|
||||
|
||||
LedDevice* LedDeviceTemplate::construct(const QJsonObject &deviceConfig)
|
||||
{
|
||||
return new LedDeviceTemplate(deviceConfig);
|
||||
@@ -83,5 +79,3 @@ int LedDeviceTemplate::write(const std::vector<ColorRgb> & ledValues)
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -17,11 +17,6 @@ public:
|
||||
///
|
||||
explicit LedDeviceTemplate(const QJsonObject &deviceConfig);
|
||||
|
||||
///
|
||||
/// Destructor of this LedDevice
|
||||
///
|
||||
virtual ~LedDeviceTemplate() override;
|
||||
|
||||
/// constructs leddevice
|
||||
static LedDevice* construct(const QJsonObject &deviceConfig);
|
||||
|
||||
@@ -38,7 +33,7 @@ public slots:
|
||||
/// Includes switching-off the device and stopping refreshes
|
||||
///
|
||||
virtual void close() override;
|
||||
|
||||
|
||||
protected:
|
||||
///
|
||||
/// Opens and initiatialises the output device
|
||||
|
@@ -54,7 +54,7 @@ int LedDeviceMultiLightpack::open()
|
||||
std::sort(_lightpacks.begin(), _lightpacks.end(), compareLightpacks);
|
||||
|
||||
// open each lightpack device
|
||||
foreach (auto serial , serialList)
|
||||
for (auto serial : serialList)
|
||||
{
|
||||
LedDeviceLightpack * device = new LedDeviceLightpack(serial);
|
||||
int error = device->open();
|
||||
|
@@ -57,7 +57,7 @@ bool LedDeviceAtmoOrb::init(const QJsonObject &deviceConfig)
|
||||
|
||||
_orbIds.clear();
|
||||
|
||||
foreach(auto & id_str, orbIds)
|
||||
for(auto & id_str : orbIds)
|
||||
{
|
||||
bool ok;
|
||||
int id = id_str.toInt(&ok);
|
||||
|
@@ -205,7 +205,7 @@ bool LedDeviceNanoleaf::initLeds()
|
||||
std::map<uint, std::map<uint, uint>> panelMap;
|
||||
|
||||
// Loop over all children.
|
||||
foreach (const QJsonValue & value, positionData)
|
||||
for (const QJsonValue & value : positionData)
|
||||
{
|
||||
QJsonObject panelObj = value.toObject();
|
||||
|
||||
|
Reference in New Issue
Block a user