Skip to content
Browse files

Added debug info for a method.

  • Loading branch information...
1 parent 9928b8b commit 7fd5f11ca63c660c673b9b2074818c06ee8b4e49 @edobez committed Jan 13, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 RGBLEDHelper.cpp
View
8 RGBLEDHelper.cpp
@@ -207,6 +207,12 @@ bool RgbLed::_checkColor(int c) {
// RETURN: true if color is acceptable for the led, false if not
bool RgbLed::_checkColor(int c, byte led) {
if (c >= _minLum[led] && c <= _maxLum[led]) return 1;
- else return 0;
+ else {
+ Serial.print("Wrong color: ");
+ Serial.print(c);
+ Serial.print(" - Led: ");
+ Serial.println(led);
+ return 0;
+ }
}

0 comments on commit 7fd5f11

Please sign in to comment.
Something went wrong with that request. Please try again.