diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sensor/calibration.cpp | 2 | ||||
-rw-r--r-- | src/sensor/calibration.hpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/sensor/calibration.cpp b/src/sensor/calibration.cpp index 40bb52b..827094c 100644 --- a/src/sensor/calibration.cpp +++ b/src/sensor/calibration.cpp @@ -3,7 +3,7 @@ #include "std/time.hpp" #include "utils.hpp" -SensorCalibrator::SensorCalibrator(UniquePtr<Sensor> &sensor, SerialStream sout) +SensorCalibrator::SensorCalibrator(UniquePtr<Sensor> sensor, SerialStream sout) : _sensor(sensor), _sout(sout) { _resetValues(); 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; |