mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 04:43:34 +08:00
Bosch: BMM350: Fix self-test on high ODR rate
We've to wait for atleast 6000us before doing self-test
This commit is contained in:
committed by
Niklas Hauser
parent
eccfb18b51
commit
001efc1c0b
@@ -34,6 +34,8 @@
|
||||
#include "BMM350.hpp"
|
||||
using namespace time_literals;
|
||||
|
||||
#define MAX(a,b) (a > b ? a : b)
|
||||
|
||||
BMM350::BMM350(const I2CSPIDriverConfig &config) :
|
||||
I2C(config),
|
||||
I2CSPIDriver(config),
|
||||
@@ -318,7 +320,7 @@ void BMM350::RunImpl()
|
||||
_state = STATE::RESET;
|
||||
}
|
||||
|
||||
ScheduleDelayed(OdrToUs(_mag_odr_mode));
|
||||
ScheduleDelayed(MAX(6000_us, OdrToUs(_mag_odr_mode)));
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user