diff options
author | HampusM <hampus@hampusmat.com> | 2022-02-14 18:18:38 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-02-14 18:18:38 +0100 |
commit | 01ce0af940bd69c94a2fac8b65219262845cca98 (patch) | |
tree | 97c443782ce1cfba90b205183c8aab1e3edb0bb3 /src/calibration.cpp | |
parent | cb7a167c7dee2fa1a19bd09ede3bae8b140e79da (diff) |
refactor: clean sewage
Diffstat (limited to 'src/calibration.cpp')
-rw-r--r-- | src/calibration.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/calibration.cpp b/src/calibration.cpp index a772ae9..66a52bf 100644 --- a/src/calibration.cpp +++ b/src/calibration.cpp @@ -3,7 +3,7 @@ #include "utils/general.hpp" #include "utils/time.hpp" -SensorCalibrator::SensorCalibrator(unique_ptr<Sensor> &sensor, SerialStream sout) +SensorCalibrator::SensorCalibrator(UniquePtr<Sensor> &sensor, SerialStream sout) : _sensor(sensor), _sout(sout) { _resetValues(); @@ -25,7 +25,7 @@ bool SensorCalibrator::calibrate(unsigned int throttle_time) _resetValues(); - for (int i = 0; i < SENSOR_READ_CNT; i++) + for (unsigned int i = 0U; i < SENSOR_READ_CNT; i++) { _updateValues(); } |