1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

REVONANO - Fix MPU9k Reset

This commit is contained in:
Alessio Morale 2015-06-01 18:54:14 +02:00
parent 564c69ad69
commit 508d55c9a6

View File

@ -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)
{
// TODO!
if (PIOS_MPU9250_ClaimBus(true) != 0) {
return;
}
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)