summaryrefslogtreecommitdiff
path: root/src/calibration.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/calibration.cpp')
-rw-r--r--src/calibration.cpp4
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();
}