AtmoOrb LedDevice now only processes new color commands and skips identical, saves last send color per light id separately in Qmap. (#602)

Former-commit-id: 38873e5b718c73d95111abcb10cf148f6a6ab18b
This commit is contained in:
Rick164
2016-04-21 14:51:43 +02:00
committed by brindosch
parent e318c9ab19
commit d4dda2dcc4
2 changed files with 21 additions and 4 deletions

View File

@@ -35,10 +35,10 @@ public:
class LedDeviceAtmoOrb : public QObject, public LedDevice {
Q_OBJECT
public:
// Last color sent
int lastRed;
int lastGreen;
int lastBlue;
// Last send color map
QMap<int, int> lastColorRedMap;
QMap<int, int> lastColorGreenMap;
QMap<int, int> lastColorBlueMap;
// Multicast status
bool joinedMulticastgroup;