Changed the constructor of LedDeviceW2801 (only incl required parameters)

Changed the call sign of the write functions (included const declaration of color parameter)
This commit is contained in:
T. van der Zwan
2013-09-09 15:23:44 +00:00
parent 8441dd51cc
commit db708da60a
3 changed files with 7 additions and 9 deletions

View File

@@ -70,7 +70,7 @@ public:
/// @param[in] ledColor The color to write to the leds
/// @param[in] timeout_ms The time the leds are set to the given color [ms]
///
void setColor(int priority, RgbColor &ledColor, const int timeout_ms);
void setColor(int priority, const RgbColor &ledColor, const int timeout_ms);
///
/// Writes the given colors to all leds for the given time and priority
@@ -79,7 +79,7 @@ public:
/// @param[in] ledColors The colors to write to the leds
/// @param[in] timeout_ms The time the leds are set to the given colors [ms]
///
void setColors(int priority, std::vector<RgbColor> &ledColors, const int timeout_ms);
void setColors(int priority, const std::vector<RgbColor> &ledColors, const int timeout_ms);
///
/// Sets/Updates a part of the color transformation.