diff options
Diffstat (limited to 'src/sensor')
-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 42f5010..e01bb34 100644 --- a/src/sensor/calibration.cpp +++ b/src/sensor/calibration.cpp @@ -3,7 +3,7 @@ #include "std/time.hpp" #include "utils.hpp" -SensorCalibrator::SensorCalibrator(Sensor sensor, SerialStream sout) +SensorCalibrator::SensorCalibrator(Sensor &sensor, SerialStream sout) : _sensor(sensor), _sout(sout) { } 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; }; |