diff --git a/include/libhal-sensor/multi/bmp180.hpp b/include/libhal-sensor/multi/bmp180.hpp index 8cf8ee3..3024f83 100644 --- a/include/libhal-sensor/multi/bmp180.hpp +++ b/include/libhal-sensor/multi/bmp180.hpp @@ -138,5 +138,4 @@ class bmp180 /// The maximum amount of samples per second with the given oversampling rate int m_maximum_samples; }; - } // namespace hal::sensor diff --git a/src/imu/mpu6050.cpp b/src/imu/mpu6050.cpp index 214356f..ad5e5fd 100644 --- a/src/imu/mpu6050.cpp +++ b/src/imu/mpu6050.cpp @@ -13,7 +13,6 @@ // limitations under the License. #include - #include #include #include diff --git a/src/multi/bmp180.cpp b/src/multi/bmp180.cpp index 1496ca3..f590ba3 100644 --- a/src/multi/bmp180.cpp +++ b/src/multi/bmp180.cpp @@ -1,14 +1,13 @@ -#include - -#include "bmp180_internal.hpp" - #include +#include #include #include #include #include +#include "bmp180_internal.hpp" + using namespace std::literals; namespace hal::sensor { namespace { @@ -50,9 +49,9 @@ void wait_for_conversion(hal::i2c* p_i2c, hal::byte p_address) bool conversion_busy = true; while (conversion_busy) { auto status = hal::write_then_read<1>(*p_i2c, - p_address, - control_measurement_register(), - hal::never_timeout())[0]; + p_address, + control_measurement_register(), + hal::never_timeout())[0]; constexpr auto conversion_status_bit = hal::bit_mask::from(5); conversion_busy = hal::bit_extract(status); } diff --git a/src/multi/bmp180_internal.hpp b/src/multi/bmp180_internal.hpp index d1a673f..93b1068 100644 --- a/src/multi/bmp180_internal.hpp +++ b/src/multi/bmp180_internal.hpp @@ -1,9 +1,9 @@ #pragma once -#include - #include +#include + namespace hal::sensor::bmp180_internal { // Struct to hold the computation variables. The names of the computation diff --git a/src/multi/mpl3115a2.cpp b/src/multi/mpl3115a2.cpp index ca6c279..fe01787 100644 --- a/src/multi/mpl3115a2.cpp +++ b/src/multi/mpl3115a2.cpp @@ -1,7 +1,6 @@ -#include - #include +#include #include #include