Fix LED Num for non analogue output (#1139)

This commit is contained in:
LordGrey 2021-02-23 20:41:46 +01:00 committed by GitHub
parent 6a4aabd5e9
commit 3ae9bc998b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,7 +139,7 @@ void setup() {
} }
int ledCount = MAX_LEDS; int ledCount = MAX_LEDS;
if (ANALOG_MODE == ANALOG_MODE_LAST_LED) { if (ANALOG_OUTPUT_ENABLED == true && ANALOG_MODE == ANALOG_MODE_LAST_LED) {
ledCount--; ledCount--;
} }
@ -170,7 +170,7 @@ void setup() {
showColor(CRGB(0, 0, 0)); showColor(CRGB(0, 0, 0));
Serial.print("Ada\n"); // Send "Magic Word" string to host 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; boolean transmissionSuccess;
unsigned long sum_r, sum_g, sum_b; unsigned long sum_r, sum_g, sum_b;
@ -254,4 +254,3 @@ void setup() {
void loop() { void loop() {
// Not used. See note in setup() function. // Not used. See note in setup() function.
} }