diff options
author | HampusM <hampus@hampusmat.com> | 2022-03-14 10:24:36 +0100 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-03-14 10:24:36 +0100 |
commit | a119e6ca70ffab14f0a70908fa3eeb83b41bb5ab (patch) | |
tree | 51b72774694f5e1aac0bb17fc1a5e528dbad9b44 /src/sensor/calibration.cpp | |
parent | 6b5754655f78a7f93b756ff902ce9fd80d9dc4ec (diff) |
refactor: rename std to common
Diffstat (limited to 'src/sensor/calibration.cpp')
-rw-r--r-- | src/sensor/calibration.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sensor/calibration.cpp b/src/sensor/calibration.cpp index e01bb34..1a2b91e 100644 --- a/src/sensor/calibration.cpp +++ b/src/sensor/calibration.cpp @@ -1,6 +1,6 @@ #include "calibration.hpp" -#include "std/time.hpp" +#include "common/time.hpp" #include "utils.hpp" SensorCalibrator::SensorCalibrator(Sensor &sensor, SerialStream sout) @@ -11,11 +11,11 @@ SensorCalibrator::SensorCalibrator(Sensor &sensor, SerialStream sout) bool SensorCalibrator::calibrate(unsigned int throttle_time) { bool done = false; - auto start_time = time_now(); + auto start_time = common::time_now(); while (!done) { - if (time_now().diff(start_time).millisecs() >= CALIBRATION_TIMEOUT) + if (common::time_now().diff(start_time).millisecs() >= CALIBRATION_TIMEOUT) { return false; } |