Untitled

                Never    
C++
       
  //Scheinwerfersteuerung

bool GasOff=false;

  if (sig_regler > 0)
  {
     if(S_abblendl == 0) { timerS_fernl = millis(); }
     if( millis() - timerS_fernl > waitingTimeFern && GasOff == false;) { S_fernl = 1; }
    GasOff=false;
    S_abblendl = 1;
    S_zusatzscheinw = 1;
  }
  else
  {
   GasOff = true;
    if ((millis() - timeLastGas > waitingTimeAbblendOff))
    {
      S_fernl = 0;
      S_abblendl = 0;
      S_zusatzscheinw = 0;    
    }
  }

Raw Text