diff --git a/firmware/config.h b/firmware/config.h index f20adab..607bd5a 100644 --- a/firmware/config.h +++ b/firmware/config.h @@ -3,7 +3,7 @@ // config general setting and behavior of the weatherstation -#define VERSION_STRING "1.1.1" +#define VERSION_STRING "1.1.2" #define WIFI_AUTOCONNECT_TIMEOUT_S 60 #define WIFI_CONFIG_PORTAL_TIMEOUT_S 120 diff --git a/firmware/influxdb.ino b/firmware/influxdb.ino index fd4ab62..5e3a023 100644 --- a/firmware/influxdb.ino +++ b/firmware/influxdb.ino @@ -1,6 +1,8 @@ #include "config_user.h" +#ifdef INFLUXDB_FEATURE + //*************************************************************************// #if INFLUXDB_VERSION == 1 @@ -107,12 +109,12 @@ void influxdb_begin() { if (client.validateConnection()) { // success #ifdef DEBUG - Serial.print("InfluxDB connect success\n"); + debug("InfluxDB connect success\n"); #endif } else { // fail #ifdef DEBUG - Serial.print("InfluxDB connect failed\n"); + debug("InfluxDB connect failed\n"); #endif } @@ -215,4 +217,6 @@ void _writePoint() #endif // influxdb version 2 check +#endif // INFLUXDB_FEATURE + //*************************************************************************//