Skip to content

Commit

Permalink
change indexes to floats
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Dec 20, 2022
1 parent ab0e94c commit d3d2fd7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions Adafruit_Sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@ typedef struct {
float current; /**< current in milliamps (mA) */
float voltage; /**< voltage in volts (V) */
float tvoc; /**< Total Volatile Organic Compounds, in ppb */
int32_t voc_index; /**< VOC (Volatile Organic Compound) index where 100 is
normal */
int32_t nox_index; /**< NOx (Nitrogen Oxides) index where 100 is normal */
float voc_index; /**< VOC (Volatile Organic Compound) index where 100 is
normal (unitless) */
float nox_index; /**< NOx (Nitrogen Oxides) index where 100 is normal
(unitless) */
sensors_color_t color; /**< color in RGB component values */
}; ///< Union for the wide ranges of data we can carry
} sensors_event_t;
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ typedef struct
float current;
float voltage;
float tvoc;
int32_t voc_index;
int32_t nox_index;
float voc_index;
float nox_index;
sensors_color_t color;
};
} sensors_event_t;
Expand Down

0 comments on commit d3d2fd7

Please sign in to comment.