 }
 
 // Displays the main weather
-#ifdef DISPLAYDATE // Dislpays the date
 void printMainData(String humidityString,
                    String temperature,
                    String time,
                    int weatherID,
                    String dateS,
-                   String description)
-{
-#else // Dislpays the day of week
-void printMainData(String humidityString,
-                   String temperature,
-                   String time,
-                   int weatherID,
                    int dayI,
                    int monthI,
                    int yearI,
                    String description)
 {
-#endif
   byte maxLeghtOfParam;
 
   tft.setTextColor(YELLOW);

  tft.print("% RH");
  tft.setTextColor(YELLOW);
  tft.setTextSize(1);
#ifdef DISPLAYDATE // Dislpays the date
  maxLeghtOfParam = std::min((int)dateS.length(), 22); // Limit characters
  tft.setCursor((11 - (maxLeghtOfParam / 2)) * 4, 150); // Center text
  tft.print(dateS);
#else // Dislpays the day of week
  String theDayOfWeek = getDayOfWeek(dayOfWeek(yearI, monthI, dayI));
  maxLeghtOfParam = std::min((int)theDayOfWeek.length(), 22); // Limit characters
  tft.setCursor((11 - (maxLeghtOfParam / 2)) * 4, 150); // Center text
  tft.print(theDayOfWeek);
#endif
}

void printWeatherIcon(int id)

                  temperature,
                  timeS,
                  idString.toInt(),
                  dateS,
                  dayI,
                  monthI,
                  yearI,
                  description);
  }
} // void getWeatherData()
