sensor enabled flag
This commit is contained in:
parent
a243ec441e
commit
02967d4449
@ -20,6 +20,7 @@ struct scd4x_config {
|
||||
scd4x_data_t* measure;
|
||||
uint16_t delay;
|
||||
uint8_t mode;
|
||||
uint8_t enabled;
|
||||
};
|
||||
typedef struct scd4x_config scd4x_config_t;
|
||||
|
||||
|
@ -11,7 +11,8 @@ scd4x_config_t* get_sensor_configuration(nvs_handle_t nvs){
|
||||
*config = (scd4x_config_t) {
|
||||
.measure = data,
|
||||
.delay = (conf >> 2),
|
||||
.mode = (conf & 0b11)
|
||||
.mode = (conf & 0b11),
|
||||
.enabled = false,
|
||||
};
|
||||
return config;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user