isentek/ist8308: minor cleanup

This commit is contained in:
Daniel Agar
2020-04-01 10:07:08 -04:00
parent 7e173048bb
commit 1c333cb664
2 changed files with 2 additions and 5 deletions
@@ -43,7 +43,7 @@ static constexpr int16_t combine(uint8_t msb, uint8_t lsb)
IST8308::IST8308(I2CSPIBusOption bus_option, int bus, enum Rotation rotation, int bus_frequency) :
I2C(MODULE_NAME, nullptr, bus, I2C_ADDRESS_DEFAULT, bus_frequency),
I2CSPIDriver(MODULE_NAME, px4::device_bus_to_wq(get_device_id()), bus_option, bus),
_px4_mag(get_device_id(), external() ? ORB_PRIO_VERY_HIGH : ORB_PRIO_HIGH, rotation)
_px4_mag(get_device_id(), external() ? ORB_PRIO_VERY_HIGH : ORB_PRIO_DEFAULT, rotation)
{
set_device_type(DRV_MAG_DEVTYPE_IST8308);
@@ -84,7 +84,6 @@ void IST8308::print_status()
perf_print_counter(_transfer_perf);
perf_print_counter(_bad_register_perf);
perf_print_counter(_bad_transfer_perf);
_px4_mag.print_status();
}
@@ -216,7 +215,6 @@ bool IST8308::Configure()
// 1 Microtesla = 0.01 Gauss
_px4_mag.set_scale(1.f / 6.6f * 0.01f); // 6.6 LSB/uT
_px4_mag.set_temperature(NAN); // temperature not available
return success;
}
@@ -70,9 +70,8 @@ public:
void RunImpl();
protected:
void custom_method(const BusCLIArguments &cli) override;
private:
void custom_method(const BusCLIArguments &cli) override;
// Sensor Configuration
struct register_config_t {