mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
MPU6k: added suspend/resume on init
This commit is contained in:
parent
ae1702c20b
commit
76a3fd9a4e
@ -111,7 +111,9 @@ void AP_InertialSensor_MPU6000::init( AP_PeriodicProcess * scheduler )
|
||||
{
|
||||
if (_initialised) return;
|
||||
_initialised = 1;
|
||||
scheduler->suspend_timer();
|
||||
hardware_init();
|
||||
scheduler->resume_timer();
|
||||
scheduler->register_process( &AP_InertialSensor_MPU6000::read );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user