mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
REVONANO - Fix MPU9k Reset
This commit is contained in:
parent
564c69ad69
commit
508d55c9a6
@ -952,12 +952,7 @@ bool PIOS_MPU9250_Main_driver_Test(__attribute__((unused)) uintptr_t context)
|
|||||||
|
|
||||||
void PIOS_MPU9250_Main_driver_Reset(__attribute__((unused)) uintptr_t context)
|
void PIOS_MPU9250_Main_driver_Reset(__attribute__((unused)) uintptr_t context)
|
||||||
{
|
{
|
||||||
// TODO!
|
|
||||||
if (PIOS_MPU9250_ClaimBus(true) != 0) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
PIOS_MPU9250_GetReg(PIOS_MPU9250_INT_STATUS_REG);
|
PIOS_MPU9250_GetReg(PIOS_MPU9250_INT_STATUS_REG);
|
||||||
PIOS_MPU9250_ReleaseBus();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PIOS_MPU9250_Main_driver_get_scale(float *scales, uint8_t size, __attribute__((unused)) uintptr_t contet)
|
void PIOS_MPU9250_Main_driver_get_scale(float *scales, uint8_t size, __attribute__((unused)) uintptr_t contet)
|
||||||
|
Loading…
Reference in New Issue
Block a user