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 {
149149 if (accuracy == 1 ) {
150150 // Set and get measurement select (medical)
151151 WS_PRINTER.println (F (" \n --- Measurement Select Settings ---" ));
152- if (!_mlx90632->setMeasurementSelect (MLX90632_MEAS_MEDICAL)) {
152+ if (!extendedInsteadOfMedicalRange && ! _mlx90632->setMeasurementSelect (MLX90632_MEAS_MEDICAL)) {
153153 WS_PRINTER.println (F (" Failed to set measurement select to Medical" ));
154154 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 ); }
155158 }
156-
159+
157160 mlx90632_meas_select_t currentMeasSelect = _mlx90632->getMeasurementSelect ();
158161 WS_PRINTER.print (F (" Current measurement select: " ));
159162 switch (currentMeasSelect) {
You can’t perform that action at this time.
0 commit comments