File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -149,11 +149,14 @@ class WipperSnapper_I2C_Driver_MLX90632D : public WipperSnapper_I2C_Driver {
149
149
if (accuracy == 1 ) {
150
150
// Set and get measurement select (medical)
151
151
WS_PRINTER.println (F (" \n --- Measurement Select Settings ---" ));
152
- if (!_mlx90632->setMeasurementSelect (MLX90632_MEAS_MEDICAL)) {
152
+ if (!extendedInsteadOfMedicalRange && ! _mlx90632->setMeasurementSelect (MLX90632_MEAS_MEDICAL)) {
153
153
WS_PRINTER.println (F (" Failed to set measurement select to Medical" ));
154
154
while (1 ) { delay (10 ); }
155
+ } else if (extendedInsteadOfMedicalRange && !_mlx90632->setMeasurementSelect (MLX90632_MEAS_EXTENDED_RANGE)) {
156
+ WS_PRINTER.println (F (" Failed to set measurement select to Extended Range" ));
157
+ while (1 ) { delay (10 ); }
155
158
}
156
-
159
+
157
160
mlx90632_meas_select_t currentMeasSelect = _mlx90632->getMeasurementSelect ();
158
161
WS_PRINTER.print (F (" Current measurement select: " ));
159
162
switch (currentMeasSelect) {
You can’t perform that action at this time.
0 commit comments