8000 change indexes to floats · adafruit/Adafruit_Sensor@d3d2fd7 · GitHub
[go: up one dir, main page]

Skip to content

Commit d3d2fd7

Browse files
committed
change indexes to floats
1 parent ab0e94c commit d3d2fd7

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Adafruit_Sensor.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ typedef struct {
138138
float current; /**< current in milliamps (mA) */
139139
float voltage; /**< voltage in volts (V) */
140140
float tvoc; /**< Total Volatile Organic Compounds, in ppb */
141-
int32_t voc_index; /**< VOC (Volatile Organic Compound) index where 100 is
142-
normal */
143-
int32_t nox_index; /**< NOx (Nitrogen Oxides) index where 100 is normal */
141+
float voc_index; /**< VOC (Volatile Organic Compound) index where 100 is
142+
normal (unitless) */
143+
float nox_index; /**< NOx (Nitrogen Oxides) index where 100 is normal
144+
(unitless) */
144145
sensors_color_t color; /**< color in RGB component values */
145146
}; ///< Union for the wide ranges of data we can carry
146147
} sensors_event_t;

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ typedef struct
141141
float current;
142142
float voltage;
143143
float tvoc;
144-
int32_t voc_index;
145-
int32_t nox_index;
144+
float voc_index;
145+
float nox_index;
146146
sensors_color_t color;
147147
};
148148
} sensors_event_t;

0 commit comments

Comments
 (0)
0