           debug(currentMillis, F("openInterval timeout - closing door\r\n"));
           initDrive(forward, accelProfileHigh);
         }
-        setLeds2(white, black, 3, ledForward);
+        setLeds2(white, black, EXTRAPIX, ledForward);
         doorState = doorClosing;
       }
       break;

#include <WS2812.h>

// MAXPIX+EXTRAPIX must fit into uint8_t
#define MAXPIX 20  // LED stripe length
#define EXTRAPIX 3 // animation buffer, read window moves back and forth EXTRAPIX pixels

// WS2812 output
const int ledPin = 11;

cRGB leds[MAXPIX+EXTRAPIX];
cRGB tmp_leds[MAXPIX]; // temp array for fading and blinking



void setup() {
  pinMode(statusLED, OUTPUT);
  digitalWrite(statusLED, HIGH);

  Serial.begin(115200);
  Serial.print(F("\r\nDoor control init\r\n"));

