From 5fea3a40f77417f639de3dbb27797d8e2ecdbaca Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 7 Mar 2022 10:15:30 +0100 Subject: fix: make the sensor calibrator take a sensor reference --- 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 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; }; -- cgit v1.2.3-18-g5258