8000 remove redundant lux · adafruit/Adafruit_Sensor@3423c95 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3423c95

Browse files
committed
remove redundant lux
1 parent 1f527eb commit 3423c95

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Adafruit_Sensor.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ typedef enum {
7979
SENSOR_TYPE_PM25_ENV = (27),
8080
SENSOR_TYPE_PM100_ENV = (28),
8181
SENSOR_TYPE_GAS_RESISTANCE = (29),
82-
SENSOR_TYPE_LUX = (30),
83-
SENSOR_TYPE_UNITLESS_PERCENT = (31)
82+
SENSOR_TYPE_UNITLESS_PERCENT = (30)
8483
} sensors_type_t;
8584

8685
/** struct sensors_vec_s is used to return a vector in a common format. */
@@ -170,7 +169,6 @@ typedef struct {
170169
million (ppm) */
171170
float gas_resistance; /**< Proportional to the amount of VOC particles in
172171
the air (Ohms) */
173-
float lux; /**< SI lux (Lux) */
174172
float unitless_percent; /**<Percentage, unit-less (%) */
175173
sensors_color_t color; /**< color in RGB component values */
176174
}; ///< Union for the wide ranges of data we can carry

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ typedef enum
8686
SENSOR_TYPE_PM10_ENV = (26),
8787
SENSOR_TYPE_PM25_ENV = (27),
8888
SENSOR_TYPE_PM100_ENV = (28),
89-
SENSOR_TYPE_GAS_RESISTANCE = (29)
89+
SENSOR_TYPE_GAS_RESISTANCE = (29),
90+
SENSOR_TYPE_UNITLESS_PERCENT = (30)
9091
} sensors_type_t;
9192
```
9293

0 commit comments

Comments
 (0)
0