 }
 
 void loop() {
+    /* DEBUG gliss code
     receivedata();
     if (newData) processdata();
-    /* DEBUG gliss code
+    */
+    blink();
     durationturn(2000, 60, true, false);
     delay(1000);
     durationturn(2000, 67, true, false);

    durationturn(2000, 72, true, false);
    delay(1000);
    durationturn(1500, 60, true, false);
    delay(500);
    durationgliss(1500, 60, 72, true, false, 0);
    delay(1500);

void setup() {
    pinMode(stepPin, OUTPUT);
    pinMode(dirPin, OUTPUT);
    pinMode(enablePin, OUTPUT);
    pinMode(alarmPin, INPUT_PULLUP);
    pinMode(sensorPin, INPUT_PULLUP);
    pinMode(A0, INPUT_PULLUP);
    pinMode(A1, INPUT_PULLUP);
    pinMode(A2, INPUT_PULLUP);
    pinMode(A3, INPUT_PULLUP);
    digitalWrite(dirPin, HIGH);
    digitalWrite(enablePin, LOW);
    Serial.begin(38400);
    blink();
    findsensor(maxPulse);
    defaults();
    //sendid();
}

void blink() {
    digitalWrite(13, HIGH);
    delay(50);
    digitalWrite(13, LOW);
}

void defaults() {
