Skip to content
This repository has been archived by the owner on Oct 27, 2024. It is now read-only.

Commit

Permalink
Fixed handling of RP2040 specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed Oct 7, 2023
1 parent 991df1e commit c95faa2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BresserWeatherSensorTTN.ino
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c95faa2

Please sign in to comment.