Skip to content

Commit

Permalink
🚨 Fix lint (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
kammce authored Nov 30, 2024
1 parent adbc2d9 commit cfd9a01
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion include/libhal-sensor/multi/bmp180.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion src/imu/mpu6050.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
// limitations under the License.

#include <libhal-sensor/imu/mpu6050.hpp>

#include <libhal-util/bit.hpp>
#include <libhal-util/i2c.hpp>
#include <libhal-util/map.hpp>
Expand Down
13 changes: 6 additions & 7 deletions src/multi/bmp180.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#include <libhal-sensor/multi/bmp180.hpp>

#include "bmp180_internal.hpp"

#include <array>

#include <libhal-sensor/multi/bmp180.hpp>
#include <libhal-util/bit.hpp>
#include <libhal-util/enum.hpp>
#include <libhal-util/i2c.hpp>
#include <libhal/error.hpp>

#include "bmp180_internal.hpp"

using namespace std::literals;
namespace hal::sensor {
namespace {
Expand Down Expand Up @@ -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<conversion_status_bit>(status);
}
Expand Down
4 changes: 2 additions & 2 deletions src/multi/bmp180_internal.hpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#pragma once

#include <libhal/units.hpp>

#include <cstdint>

#include <libhal/units.hpp>

namespace hal::sensor::bmp180_internal {

// Struct to hold the computation variables. The names of the computation
Expand Down
3 changes: 1 addition & 2 deletions src/multi/mpl3115a2.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <libhal-sensor/multi/mpl3115a2.hpp>

#include <array>

#include <libhal-sensor/multi/mpl3115a2.hpp>
#include <libhal-util/i2c.hpp>
#include <libhal/error.hpp>

Expand Down

0 comments on commit cfd9a01

Please sign in to comment.