File tree Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Expand file tree Collapse file tree 2 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -113,19 +113,10 @@ bool sfeBmv080::getIsObstructed()
113
113
void sfeBmv080::setSensorValue (bmv080_output_t bmv080_output)
114
114
{
115
115
_dataAvailable = true ;
116
- // Serial.println("setSensorValue");
117
- // Serial.println(pm25);
118
-
119
- // _sensorValue.pm2_5 = pm25;
120
-
121
116
_sensorValue.pm2_5 = bmv080_output.pm2_5 ;
122
-
123
- // _sensorValue.runtime_in_sec = bmv080_output.runtime_in_sec;
117
+ _sensorValue.runtime_in_sec = bmv080_output.runtime_in_sec ;
124
118
_sensorValue.is_obstructed = bmv080_output.is_obstructed ;
125
- // _sensorValue.is_outside_detection_limits = bmv080_output.is_outside_detection_limits;
126
-
127
- // Serial.println("setSensorValue.pm2_5");
128
- // Serial.println(_sensorValue.pm2_5);
119
+ _sensorValue.is_outside_detection_limits = bmv080_output.is_outside_detection_limits ;
129
120
}
130
121
131
122
// void print_to_serial(const char *format, ...)
Original file line number Diff line number Diff line change @@ -61,13 +61,14 @@ class sfeBmv080
61
61
void setSensorValue (bmv080_output_t bmv080_output);
62
62
// void setSensorValue(float pm25);
63
63
// void bmv080_service_routine(void);
64
- bmv080_output_t _sensorValue;
64
+
65
65
bool dataAvailable ();
66
66
67
67
bmv080_handle_t bmv080_handle_class = NULL ;
68
68
69
69
private:
70
70
bool _dataAvailable = false ;
71
+ bmv080_output_t _sensorValue;
71
72
72
73
// protected:
73
74
// sfeTkII2C *_theBus;
You can’t perform that action at this time.
0 commit comments