Commit 8c12dc6c23be951d0dde119fffa14b3591a615cc

Authored by Nodeduino
Committed by Moritz Wirger
1 parent f2baaccf

Make hasBrightnessControl, hasTemperatureControl and hasColorControl of HueLight constant

hueplusplus/include/HueLight.h
... ... @@ -148,7 +148,7 @@ public:
148 148 //! \brief Function to check whether this light has brightness control
149 149 //!
150 150 //! \return Bool that is true when the light has specified abilities and false when not
151   - bool hasBrightnessControl()
  151 + bool hasBrightnessControl() const
152 152 {
153 153 return brightnessStrategy != nullptr;
154 154 };
... ... @@ -156,7 +156,7 @@ public:
156 156 //! \brief Function to check whether this light has color temperature control
157 157 //!
158 158 //! \return Bool that is true when the light has specified abilities and false when not
159   - bool hasTemperatureControl()
  159 + bool hasTemperatureControl() const
160 160 {
161 161 return colorTemperatureStrategy != nullptr;
162 162 };
... ... @@ -164,7 +164,7 @@ public:
164 164 //! \brief Function to check whether this light has full color control
165 165 //!
166 166 //! \return Bool that is true when the light has specified abilities and false when not
167   - bool hasColorControl()
  167 + bool hasColorControl() const
168 168 {
169 169 return colorHueStrategy != nullptr;
170 170 };
... ...