Skip to content

Commit 87b9d64

Browse files
committed
chore(tidy): clang-format SGP41
1 parent 9b5a27a commit 87b9d64

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/components/i2c/drivers/WipperSnapper_I2C_Driver_SGP41.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
#include <Wire.h>
2424

2525
#define SGP41_FASTTICK_INTERVAL_MS 1000 ///< Enforce ~1 Hz cadence
26-
#define SGP41_CONDITIONING_TICKS 10 ///< Recommended warmup cycles
27-
#define SGP41_VOC_LEARNING_MS 60000UL ///< VOC index meaningful after ~60s
28-
#define SGP41_NOX_LEARNING_MS 300000UL ///< NOx index meaningful after ~300s
26+
#define SGP41_CONDITIONING_TICKS 10 ///< Recommended warmup cycles
27+
#define SGP41_VOC_LEARNING_MS 60000UL ///< VOC index meaningful after ~60s
28+
#define SGP41_NOX_LEARNING_MS 300000UL ///< NOx index meaningful after ~300s
2929

3030
/**************************************************************************/
3131
/*!
@@ -231,21 +231,21 @@ class WipperSnapper_I2C_Driver_SGP41 : public WipperSnapper_I2C_Driver {
231231
* Cached latest measurements from the sensor.
232232
* - _rawValue: raw VOC sensor output (ticks)
233233
* - _rawNOxValue: raw NOx sensor output (ticks)
234-
* - _vocIdx: calculated VOC Gas Index
235-
* - _noxIdx: calculated NOx Gas Index
234+
* - _vocIdx: calculated VOC Gas Index
235+
* - _noxIdx: calculated NOx Gas Index
236236
*/
237-
uint16_t _rawValue = 0; ///< Raw VOC sensor output (ticks)
238-
uint16_t _rawNOxValue = 0; ///< Raw NOx sensor output (ticks)
239-
float _vocIdx = 0; ///< Calculated VOC Gas Index
240-
float _noxIdx = 0; ///< Calculated NOx Gas Index
241-
VOCGasIndexAlgorithm _vocAlgorithm; ///< VOC gas index state machine
242-
NOxGasIndexAlgorithm _noxAlgorithm; ///< NOx gas index state machine
243-
uint8_t _conditioningTicks = 0; ///< Completed initial conditioning cycles
244-
uint32_t _algoStartMs = 0; ///< Timestamp when gas index learning began
237+
uint16_t _rawValue = 0; ///< Raw VOC sensor output (ticks)
238+
uint16_t _rawNOxValue = 0; ///< Raw NOx sensor output (ticks)
239+
float _vocIdx = 0; ///< Calculated VOC Gas Index
240+
float _noxIdx = 0; ///< Calculated NOx Gas Index
241+
VOCGasIndexAlgorithm _vocAlgorithm; ///< VOC gas index state machine
242+
NOxGasIndexAlgorithm _noxAlgorithm; ///< NOx gas index state machine
243+
uint8_t _conditioningTicks = 0; ///< Completed initial conditioning cycles
244+
uint32_t _algoStartMs = 0; ///< Timestamp when gas index learning began
245245
uint16_t _serialNumber[3] = {0, 0, 0}; ///< Optional serial number cache
246246
uint16_t _selfTestResult = 0; ///< Optional self-test cache
247-
bool _hasSerial = false; ///< True if serial number read succeeded
248-
uint32_t _lastFastMs = 0; ///< Last poll timestamp to enforce cadence
247+
bool _hasSerial = false; ///< True if serial number read succeeded
248+
uint32_t _lastFastMs = 0; ///< Last poll timestamp to enforce cadence
249249

250250
/*******************************************************************************/
251251
/*!

0 commit comments

Comments
 (0)