@@ -63,43 +63,43 @@ class WipperSnapper_I2C_Driver_SGP30 : public WipperSnapper_I2C_Driver {
63
63
return true ;
64
64
}
65
65
66
- /* ******************************************************************************/
67
- /* !
68
- @brief Gets the most recently cached eCO2 reading.
66
+ /* ******************************************************************************/
67
+ /* !
68
+ @brief Gets the most recently cached eCO2 reading.
69
69
70
- This value is updated in `fastTick()` at a ~1 Hz cadence
71
- and returned directly here without re-triggering an I2C
72
- transaction.
70
+ This value is updated in `fastTick()` at a ~1 Hz cadence
71
+ and returned directly here without re-triggering an I2C
72
+ transaction.
73
73
74
- @param senseEvent
75
- Pointer to an Adafruit Sensor event that will be populated
76
- with the cached eCO2 value (in ppm).
74
+ @param senseEvent
75
+ Pointer to an Adafruit_Sensor event that will be populated
76
+ with the cached eCO2 value (in ppm).
77
77
78
- @returns True if a cached value is available, False otherwise.
79
- */
80
- /* ******************************************************************************/
78
+ @returns True if a cached value is available, False otherwise.
79
+ */
80
+ /* ******************************************************************************/
81
81
bool getEventECO2 (sensors_event_t *senseEvent) override {
82
82
if (!_sgp30)
83
83
return false ;
84
84
senseEvent->eCO2 = _eco2;
85
85
return true ;
86
86
}
87
87
88
- /* ******************************************************************************/
89
- /* !
90
- @brief Gets the most recently cached TVOC reading.
88
+ /* ******************************************************************************/
89
+ /* !
90
+ @brief Gets the most recently cached TVOC reading.
91
91
92
- This value is updated in `fastTick()` at a ~1 Hz cadence
93
- and returned directly here without re-triggering an I2C
94
- transaction.
92
+ This value is updated in `fastTick()` at a ~1 Hz cadence
93
+ and returned directly here without re-triggering an I2C
94
+ transaction.
95
95
96
- @param senseEvent
97
- Pointer to an Adafruit Sensor event that will be populated
98
- with the cached TVOC value (in ppb).
96
+ @param senseEvent
97
+ Pointer to an Adafruit_Sensor event that will be populated
98
+ with the cached TVOC value (in ppb).
99
99
100
- @returns True if a cached value is available, False otherwise.
101
- */
102
- /* ******************************************************************************/
100
+ @returns True if a cached value is available, False otherwise.
101
+ */
102
+ /* ******************************************************************************/
103
103
bool getEventTVOC (sensors_event_t *senseEvent) override {
104
104
if (!_sgp30)
105
105
return false ;
0 commit comments