Minor cleanup w/r/t LEDs

This commit is contained in:
Scott Lahteine
2020-08-23 23:57:51 -05:00
parent 4b124352ef
commit c488070859
16 changed files with 34 additions and 43 deletions

View File

@@ -104,11 +104,7 @@ typedef struct LEDColor {
bool operator!=(const LEDColor &right) { return !operator==(right); }
bool is_off() const {
return 3 > r + g + b
#if HAS_WHITE_LED
+ w
#endif
;
return 3 > r + g + b + TERN0(HAS_WHITE_LED, w);
}
} LEDColor;
@@ -156,7 +152,7 @@ public:
#endif
);
inline void set_color(uint8_t r, uint8_t g, uint8_t b
static inline void set_color(uint8_t r, uint8_t g, uint8_t b
#if HAS_WHITE_LED
, uint8_t w=0
#if ENABLED(NEOPIXEL_LED)