summaryrefslogtreecommitdiff
path: root/src/sensor/calibration.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-07 10:15:30 +0100
committerHampusM <hampus@hampusmat.com>2022-03-07 10:15:30 +0100
commit5fea3a40f77417f639de3dbb27797d8e2ecdbaca (patch)
tree1abc41f902cfb0d01fa20afb42817bb7ff6508f0 /src/sensor/calibration.hpp
parent49a5d3d3fb0dccf1b993aeea4b803cd079a1e66f (diff)
fix: make the sensor calibrator take a sensor reference
Diffstat (limited to 'src/sensor/calibration.hpp')
-rw-r--r--src/sensor/calibration.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sensor/calibration.hpp b/src/sensor/calibration.hpp
index 090fd27..585d655 100644
--- a/src/sensor/calibration.hpp
+++ b/src/sensor/calibration.hpp
@@ -51,7 +51,7 @@ public:
* @param sensor A sensor to calibrate
* @param sout A Serial output stream
*/
- SensorCalibrator(Sensor sensor, SerialStream sout);
+ SensorCalibrator(Sensor &sensor, SerialStream sout);
/**
* Calibrates the sensor.
@@ -69,7 +69,7 @@ private:
static void _adjustValues(SensorCalibratorValues &values);
static bool _isValuesInRange(const SensorCalibratorValues &values);
- Sensor _sensor;
+ Sensor &_sensor;
SerialStream _sout;
};