We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 631f20b commit dea0339Copy full SHA for dea0339
2 files changed
examples/demo/I2C/MHZ19XI2C-SLV/src/main.cpp
@@ -17,7 +17,7 @@ uint16_t latestCO2ppm = 0;
17
volatile uint8_t getCO2ConcentrationIntervalInSeconds = 5;
18
19
// MHZ19XI2C_register_t::error_code
20
-MHZ19X_error_t getCO2ConcentrationResult = MHZ19X_error_t::success;
+auto getCO2ConcentrationResult = MHZ19X_error_t::none;
21
22
// If errors on measurement reading occur consecutively beyond the following count,
23
// a software reset using watchdog will be triggered as there could be
src/MHZ19X_error_t.hpp
@@ -5,6 +5,8 @@
5
#define MHZ19X_error_t_hpp
6
7
enum class MHZ19X_error_t {
8
+ // Represents a value that is neither success nor failure.
9
+ none = -1,
10
success = 0,
11
uart_write_failure,
12
uart_read_timeout,
0 commit comments