Disambiguated type name and instance name LEDs

Signed-off-by: Florian Fleissner <florian.fleissner@inpartik.de>
pull/729/head
Florian Fleissner 5 years ago committed by Jesse Vincent
parent 0cce6ed0a8
commit 714e34579e
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -91,7 +91,7 @@ class Base {
static constexpr uint8_t matrix_columns = KeyScannerProps::matrix_columns; static constexpr uint8_t matrix_columns = KeyScannerProps::matrix_columns;
static constexpr uint8_t led_count = LEDDriverProps::led_count; static constexpr uint8_t led_count = LEDDriverProps::led_count;
static constexpr typename LEDDriver::LEDs &LEDs() { static constexpr typename LEDDriver::LEDs &LEDs() {
return LEDDriver::LEDs; return LEDDriver::LEDs_;
} }
/** /**

@ -109,7 +109,7 @@ class Base {
constexpr bool isValid(uint8_t index) { constexpr bool isValid(uint8_t index) {
return (_LEDDriverProps::led_count > 0 && index < _LEDDriverProps::led_count); return (_LEDDriverProps::led_count > 0 && index < _LEDDriverProps::led_count);
} }
} LEDs; } LEDs_;
protected: protected:
typedef _LEDDriverProps Props_; typedef _LEDDriverProps Props_;

Loading…
Cancel
Save