summaryrefslogtreecommitdiff
path: root/src/sensor/calibration.hpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-02-28 14:09:59 +0100
committerHampusM <hampus@hampusmat.com>2022-02-28 14:09:59 +0100
commit0b91a042813115beca3c386cc7e1861ee4239393 (patch)
treeb4a020b4d7b7203d08327f003c4ba2f485d44c73 /src/sensor/calibration.hpp
parenta073710151f5530887415fdd3accb3c791ab0f5e (diff)
refactor: fix sensor calibrator constructor
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 03e2e9c..a808fe9 100644
--- a/src/sensor/calibration.hpp
+++ b/src/sensor/calibration.hpp
@@ -40,7 +40,7 @@ public:
* @param sensor A sensor to calibrate
* @param sout A Serial output stream
*/
- SensorCalibrator(UniquePtr<Sensor> &sensor, SerialStream sout);
+ SensorCalibrator(UniquePtr<Sensor> sensor, SerialStream sout);
/**
* Calibrates the sensor.
@@ -59,7 +59,7 @@ private:
void _adjustCalibration();
- UniquePtr<Sensor> &_sensor;
+ UniquePtr<Sensor> _sensor;
SerialStream _sout;