File tree 5 files changed +2
-42
lines changed
5 files changed +2
-42
lines changed Original file line number Diff line number Diff line change 25
25
[submodule "lib/model_gauge "]
26
26
path = lib/model_gauge
27
27
url = https://github.com/particle-iot/model_gauge.git
28
- [submodule "lib/sensirion "]
29
- path = lib/sensirion
30
- url = https://github.com/particle-iot/sensirion.git
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -153,8 +153,6 @@ void EdgePlatform::init()
153
153
currentLimit_ = Ilim::eILIM_3;
154
154
}
155
155
156
- // Sensirion sensor type is currently not a field in OTP. However, there may be a field in the future.
157
- sensirion_ = EdgePlatform::SensirionType::eSENSE_INVALID;
158
156
#endif
159
157
160
158
// Flag the initialization as complete
@@ -223,10 +221,3 @@ EdgePlatform::FuelGaugeType EdgePlatform::getFuelGaugeType() const
223
221
224
222
return fg_;
225
223
}
226
-
227
- EdgePlatform::SensirionType EdgePlatform::getSensirionType () const
228
- {
229
- CHECK_TRUE (isInitialized_, SensirionType::eSENSE_INVALID);
230
-
231
- return sensirion_;
232
- }
Original file line number Diff line number Diff line change @@ -85,13 +85,6 @@ class EdgePlatform
85
85
eFG_INVALID
86
86
};
87
87
88
- enum class SensirionType
89
- {
90
- eSHT,
91
- eSTS31,
92
- eSENSE_INVALID
93
- };
94
-
95
88
/* *
96
89
* @brief Return instance of the LocationService
97
90
*
@@ -175,13 +168,6 @@ class EdgePlatform
175
168
*/
176
169
FuelGaugeType getFuelGaugeType () const ;
177
170
178
- /* *
179
- * @brief Return Sensirion sensory type
180
- *
181
- * @return SensirionType
182
- */
183
- SensirionType getSensirionType () const ;
184
-
185
171
private:
186
172
/* *
187
173
* Create a new Tracker Platform object
@@ -200,5 +186,4 @@ class EdgePlatform
200
186
ThermistorType tr_ {ThermistorType::eTR_INVALID};
201
187
WiFiVariant wifi_ {WiFiVariant::eWIFI_INVALID};
202
188
FuelGaugeType fg_ {FuelGaugeType::eFG_INVALID};
203
- SensirionType sensirion_ {SensirionType::eSENSE_INVALID};
204
189
};
Original file line number Diff line number Diff line change 16
16
17
17
#include < atomic>
18
18
#include " EdgePlatform.h"
19
- #include " Sts3x.h"
20
19
#include " thermistor.h"
21
20
#include " temperature.h"
22
21
#include " tracker_sleep.h"
@@ -87,7 +86,6 @@ enum class TempChargeState {
87
86
88
87
89
88
static Thermistor _thermistor;
90
- static Sts3x _sts (Wire, Sts3x::AddrA, PIN_INVALID);
91
89
static TemperatureCallback _eventCallback = nullptr ;
92
90
static unsigned int chargeEvalTick = 0 ;
93
91
@@ -97,21 +95,11 @@ void onWake(TrackerSleepContext context) {
97
95
}
98
96
99
97
float get_temperature () {
100
- if (EdgePlatform::instance ().getSensirionType () != EdgePlatform::SensirionType::eSENSE_INVALID) {
101
- float temp {};
102
- _sts.singleMeasurement (temp);
103
- return temp;
104
- } else {
105
- return _thermistor.getTemperature ();
106
- }
98
+ return _thermistor.getTemperature ();
107
99
}
108
100
109
101
int temperature_init (pin_t analogPin, TemperatureCallback eventCallback) {
110
- if (EdgePlatform::instance ().getSensirionType () != EdgePlatform::SensirionType::eSENSE_INVALID) {
111
- CHECK_TRUE (_sts.init (), SYSTEM_ERROR_INTERNAL);
112
- } else {
113
- CHECK (_thermistor.begin (analogPin, _thermistorConfig));
114
- }
102
+ CHECK (_thermistor.begin (analogPin, _thermistorConfig));
115
103
116
104
static ConfigObject _serviceObject
117
105
(
You can’t perform that action at this time.
0 commit comments