From 0b91a042813115beca3c386cc7e1861ee4239393 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 28 Feb 2022 14:09:59 +0100 Subject: refactor: fix sensor calibrator constructor --- src/sensor/calibration.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sensor/calibration.hpp') 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, SerialStream sout); + SensorCalibrator(UniquePtr sensor, SerialStream sout); /** * Calibrates the sensor. @@ -59,7 +59,7 @@ private: void _adjustCalibration(); - UniquePtr &_sensor; + UniquePtr _sensor; SerialStream _sout; -- cgit v1.2.3-18-g5258