From 96894fbc39238d7387705834ea8123a932eb759f Mon Sep 17 00:00:00 2001 From: klaute Date: Sun, 27 Jan 2019 20:14:43 +0100 Subject: [PATCH] Fixed compilation errors... config_user.h includes twice. --- firmware/config.h | 6 ++++++ firmware/sensors.ino | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) mode change 100644 => 100755 firmware/config.h mode change 100644 => 100755 firmware/sensors.ino diff --git a/firmware/config.h b/firmware/config.h old mode 100644 new mode 100755 index 783d9d2..2274575 --- a/firmware/config.h +++ b/firmware/config.h @@ -1,4 +1,7 @@ +#ifndef __CONFIG_H__ +#define __CONFIG_H__ + #define SENSOR_TEMPERATURE 0 #define SENSOR_HUMIDITY 1 #define SENSOR_LIGHT 2 @@ -30,3 +33,6 @@ #define BME280_ADDRESS 0x76 #define INITIAL_WEBSERVER_TIME 20 + +#endif + diff --git a/firmware/sensors.ino b/firmware/sensors.ino old mode 100644 new mode 100755 index 03c45da..dc5479f --- a/firmware/sensors.ino +++ b/firmware/sensors.ino @@ -57,4 +57,4 @@ float getBatteryVoltage() { float volt = raw / 1023.0; return volt * 4.2; } -#endif +#endif