Timer to restore light state properly implemented. Lights are not switched on after state has been saved.

Former-commit-id: 04959ea3731eb7de9f59b80a789f03cfeb2d4ba3
This commit is contained in:
ntim
2014-05-07 15:22:13 +02:00
parent 32f09dcc24
commit 853d002894
2 changed files with 22 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ public:
///
virtual int write(const std::vector<ColorRgb> & ledValues);
/// Switch the leds off
/// Restores the original state of the leds.
virtual int switchOff();
private slots:
@@ -104,6 +104,13 @@ private:
///
void saveStates(unsigned int nLights);
///
/// Switches the leds on.
///
/// @param nLights the number of lights
///
void switchOn(unsigned int nLights);
///
/// @return true if light states have been saved.
///