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
1 changed files with 2 additions and 3 deletions

View File

@ -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.
}