From 01ce0af940bd69c94a2fac8b65219262845cca98 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 14 Feb 2022 18:18:38 +0100 Subject: refactor: clean sewage --- src/calibration.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/calibration.cpp') 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, SerialStream sout) +SensorCalibrator::SensorCalibrator(UniquePtr &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(); } -- cgit v1.2.3-18-g5258