From 3ae9bc998bf3f53ea9bd9865c9575fe9baa3cf82 Mon Sep 17 00:00:00 2001 From: LordGrey <48840279+Lord-Grey@users.noreply.github.com> Date: Tue, 23 Feb 2021 20:41:46 +0100 Subject: [PATCH] Fix LED Num for non analogue output (#1139) --- assets/firmware/arduino/adalight/adalight.ino | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/firmware/arduino/adalight/adalight.ino b/assets/firmware/arduino/adalight/adalight.ino index 30a41c2a..5172129a 100644 --- a/assets/firmware/arduino/adalight/adalight.ino +++ b/assets/firmware/arduino/adalight/adalight.ino @@ -139,7 +139,7 @@ void setup() { } int ledCount = MAX_LEDS; - if (ANALOG_MODE == ANALOG_MODE_LAST_LED) { + if (ANALOG_OUTPUT_ENABLED == true && ANALOG_MODE == ANALOG_MODE_LAST_LED) { ledCount--; } @@ -170,7 +170,7 @@ void setup() { showColor(CRGB(0, 0, 0)); Serial.print("Ada\n"); // Send "Magic Word" string to host - + Serial.println("Ada: LED num: " + String(FastLED.size())); //Return number of LEDs configured boolean transmissionSuccess; unsigned long sum_r, sum_g, sum_b; @@ -254,4 +254,3 @@ void setup() { void loop() { // Not used. See note in setup() function. } -