 
     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." );


  ESP_LOGI( TAG, "Connecting WiFi" );

  if ( xTftTaskHandle )
  {
    tft.setTextColor( TFT_TEXT_COLOR , TFT_BACK_COLOR );
    tft.println( "Connecting WiFi");
  }

  waitForWifi();

  if ( WiFi.status() != WL_CONNECTED )
  {
    if ( xTftTaskHandle )
    {
      tft.println( "\nNo WiFi connection.\nWaiting for SmartConfig." );
      tft.invertDisplay( true );
    }

    NULL,                           /* Task handle. */
    1);                             /* Core where the task should run */

  while (1) {
    if ( !WiFi.isConnected() ) {
      ESP_LOGI( TAG, "No Wifi. Reconnecting.." );
      WiFi.reconnect();
      vTaskDelay( 9000 / portTICK_PERIOD_MS );
