         if (i>(accelSteps - decelLook) && digitalRead(sensorPin)) break;
     }
     findsensor(max(maxPulse, endpulse));
-    digitalWrite(LED_BUILTIN, LOW);
 }
 
 int timedturn(int halfturns, int duration, bool dir) {

    return (pitch / 2.0) + 36;
}

void flashled() {
    digitalWrite(LED_BUILTIN, HIGH);
    delay(100);
    digitalWrite(LED_BUILTIN, LOW);
    delay(100);
}

void onestep(unsigned long pulseTime) {
    digitalWrite(stepPin, HIGH);
    delayMicroseconds(pulseWidth);

    } else {
        pulse = max(pulse, minPulse);
    }
    digitalWrite(dirPin, dir);
    delayMicroseconds(pulseWidth);
    for (int i=0; i<localAccelSteps; i++) {
