         }
     
     }    // TrackSignal = Off
-  } else {
-    // no sx signal, reset button
-    progButtonPressedTime = millis();
-  }    // running
+  }   // running
  
 
 #ifdef TESTVERSION

#define  PROGLED 13
#define  PROGBUTTON 3
#define  DEBOUNCETIME 200
#define  PROG_ACTIVATE_TIME  3000      // (muss länger als 3 sec aktiv sein)

#define  EEPROMSIZE 2                  // 2 Byte vorsehen: Adresse und Abfallverzögerung

char swversion[] =    "SW V02.10";
char hwversion[] =    "HW V01.02";

int      SXAddr;

#endif 

}

//******************************************************************************************
void toggleProgramming() {
  // called when button is long pressed
#ifdef TESTVERSION
  Serial.print(F("toggleProgramming, trackOn="));
  Serial.println(trackOn);
#endif

if (!trackOn) {
  // react to key press only when track voltage is off
  if (!programming) {
    startProgramming();
  } else {
    finishProgramming();
  }
} // !trackOn
}


//******************************************************************************************
void startProgramming() {

