Skip to content

Commit 7cf9c2c

Browse files
committed
Add a few consistency fixes
Fixes #6
1 parent 374afd7 commit 7cf9c2c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

platformio.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ build_flags =
3434
-D TFT_DC=2
3535
-D TFT_RST=4
3636
-D TFT_BL=32
37+
-D TOUCH_CS=21
3738
; As we're using OpenFontRender we don't need any of the TFT_eSPI built-in fonts.
3839
; Font descriptions at TFT_eSPI/User_Setups/Setup21_ILI9488.h
3940
-D LOAD_GLCD=0

src/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ void loop(void) {
107107
// uint16_t touchX = p.x;
108108
// uint16_t touchY = p.y;
109109

110-
// log_d("Touch coordinates: x=%d, y=%d", touchX, touchY);
110+
// log_i("Touch coordinates: x=%d, y=%d", touchX, touchY);
111111
// // Debouncing; avoid returning the same touch multiple times.
112112
// delay(50);
113113
// }
@@ -371,7 +371,7 @@ void updateData(boolean updateProgressBar) {
371371
currentWeatherClient->updateCurrentById(&currentWeather, OPEN_WEATHER_MAP_API_KEY, OPEN_WEATHER_MAP_LOCATION_ID);
372372
delete currentWeatherClient;
373373
currentWeatherClient = nullptr;
374-
log_i("Current weather in %s: %s, %.1f°", currentWeather.cityName, currentWeather.description.c_str(), currentWeather.feelsLike);
374+
log_i("Current weather in %s: %s, %.1f°", currentWeather.cityName.c_str(), currentWeather.description.c_str(), currentWeather.feelsLike);
375375

376376
if(updateProgressBar) drawProgress("Updating forecast...", 90);
377377
OpenWeatherMapForecast *forecastClient = new OpenWeatherMapForecast();

0 commit comments

Comments
 (0)