Fixed compilation errors... config_user.h includes twice.

This commit is contained in:
klaute 2019-01-27 20:14:43 +01:00
parent 1cef0e43c8
commit 96894fbc39
2 changed files with 7 additions and 1 deletions

6
firmware/config.h Normal file → Executable file
View file

@ -1,4 +1,7 @@
#ifndef __CONFIG_H__
#define __CONFIG_H__
#define SENSOR_TEMPERATURE 0 #define SENSOR_TEMPERATURE 0
#define SENSOR_HUMIDITY 1 #define SENSOR_HUMIDITY 1
#define SENSOR_LIGHT 2 #define SENSOR_LIGHT 2
@ -30,3 +33,6 @@
#define BME280_ADDRESS 0x76 #define BME280_ADDRESS 0x76
#define INITIAL_WEBSERVER_TIME 20 #define INITIAL_WEBSERVER_TIME 20
#endif

2
firmware/sensors.ino Normal file → Executable file
View file

@ -57,4 +57,4 @@ float getBatteryVoltage() {
float volt = raw / 1023.0; float volt = raw / 1023.0;
return volt * 4.2; return volt * 4.2;
} }
#endif #endif