mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 17:53:59 -04:00
MPU6k: added suspend/resume on init
This commit is contained in:
parent
88b2139d91
commit
2dd655d87d
@ -111,7 +111,9 @@ void AP_InertialSensor_MPU6000::init( AP_PeriodicProcess * scheduler )
|
|||||||
{
|
{
|
||||||
if (_initialised) return;
|
if (_initialised) return;
|
||||||
_initialised = 1;
|
_initialised = 1;
|
||||||
|
scheduler->suspend_timer();
|
||||||
hardware_init();
|
hardware_init();
|
||||||
|
scheduler->resume_timer();
|
||||||
scheduler->register_process( &AP_InertialSensor_MPU6000::read );
|
scheduler->register_process( &AP_InertialSensor_MPU6000::read );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user