Skip to content

Commit 205c68d

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

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
@@ -44,6 +44,7 @@ build_flags =
4444
-D LOAD_FONT8=0
4545
-D LOAD_GFXFF=0
4646
-D SMOOTH_FONT=1
47+
-D TOUCH_CS=21
4748
-D SPI_FREQUENCY=27000000
4849
; required if you include OpenFontRender and build on macOS
4950
-I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/**

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)