Browse Source

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

klaute 1 year ago
parent
commit
96894fbc39
2 changed files with 7 additions and 1 deletions
  1. 6
    0
      firmware/config.h
  2. 1
    1
      firmware/sensors.ino

+ 6
- 0
firmware/config.h View File

@@ -1,4 +1,7 @@
1 1
 
2
+#ifndef __CONFIG_H__
3
+#define __CONFIG_H__
4
+
2 5
 #define SENSOR_TEMPERATURE    0
3 6
 #define SENSOR_HUMIDITY       1
4 7
 #define SENSOR_LIGHT          2
@@ -30,3 +33,6 @@
30 33
 #define BME280_ADDRESS 0x76
31 34
 
32 35
 #define INITIAL_WEBSERVER_TIME 20
36
+
37
+#endif
38
+

+ 1
- 1
firmware/sensors.ino View File

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

Loading…
Cancel
Save