 //----- setup -----
 
 void setup() {
-  if(LED_MODE != LED_MODE_OFF){ // LED_MODE_OFF never light on  
-    pinMode(ARDUINO_LED_PIN, OUTPUT);
-  }
-  lightBlink();
-
   Serial.begin(SERIAL_BAUDRATE);
   Serial.println("System starting...."); 
   

  Serial.println(", Flash initialized.");

  //Web Setup Server
  pinMode(INPUT_PULLUP,13);
  boolean isHigh=false;
  for(int i=0;i<=10;i++){
     if(digitalRead(13)==1) isHigh=true;
     delay(50);
  }
  if(!setting_load() || isHigh){
    setting_init();
    setting_save();
    LWiFiEncryption wifi_auth;

      webserver_loop();
    }
  }
  
   if(LED_MODE != LED_MODE_OFF){ // LED_MODE_OFF never light on  
    pinMode(ARDUINO_LED_PIN, OUTPUT);
  }
  
  lightBlink();
  setting_show();
  clientIDStr = setting.device_id;
  clientIDStr.toCharArray(clientID, clientIDStr.length()+1);
