 
     ESP_LOGI( TAG, "Waiting %i seconds for SmartConfig.", rebootDelayMs / 1000 );
 
-
-    while ( !WiFi.smartConfigDone() && ( (unsigned long)millis() - smartConfigStartMs ) < rebootDelayMs )
-    {
+    while ( !WiFi.smartConfigDone() && ( (unsigned long)millis() - smartConfigStartMs ) < rebootDelayMs ) {
       char remainingSCTime[12];
-      if ( xOledTaskHandle )
-      {
+      if ( xOledTaskHandle ) {
         OLED.clear();
         OLED.setFont( ArialMT_Plain_10 );
         OLED.drawString( 64, 10, "Waiting for SmartConfig." );

            );
  }

  if ( !MDNS.begin( "" ) )
  {
    ESP_LOGE( TAG, "Error setting up mDNS." );
  }
  else if ( !setupMDNS( hostName ) )
  {
    ESP_LOGE( TAG, "Error setting up %s as hostname. ", hostName );
  }

  /* start network dependent tasks */
  xTaskCreatePinnedToCore(

void wifiTask( void * pvParameters ) {
  /* trying last accesspoint */
  WiFi.mode( WIFI_STA );
  WiFi.begin();
