From c95faa2253c62d0df2e98c77c87e0a48a8d02ad6 Mon Sep 17 00:00:00 2001 From: Matthias Prinke Date: Sat, 7 Oct 2023 12:52:30 +0200 Subject: [PATCH] Fixed handling of RP2040 specific code --- BresserWeatherSensorTTN.ino | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/BresserWeatherSensorTTN.ino b/BresserWeatherSensorTTN.ino index a398234..eb3e88e 100644 --- a/BresserWeatherSensorTTN.ino +++ b/BresserWeatherSensorTTN.ino @@ -794,7 +794,10 @@ void setup() { // wait for serial to be ready - or timeout if USB is not connected delay(500); - log_i("Time saved: %lu", time_saved); + + #if defined(ARDUINO_ARCH_RP2040) + log_i("Time saved: %lu", time_saved); + #endif preferences.begin("BWS-TTN", false); prefs.ws_timeout = preferences.getUChar("ws_timeout", WEATHERSENSOR_TIMEOUT); log_d("Preferences: weathersensor_timeout: %u s", prefs.ws_timeout);