1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +03:00

Cleanup of acc device drivers extern usage CF PR#2117

This commit is contained in:
Martin Budden 2016-06-16 18:09:05 +01:00
parent 5e84431e7a
commit e9a46c6ebb
21 changed files with 41 additions and 44 deletions

View file

@ -764,7 +764,7 @@ static bool processOutCommand(uint8_t cmdMSP)
headSerialReply(18);
// Hack scale due to choice of units for sensor data in multiwii
uint8_t scale = (acc_1G > 1024) ? 8 : 1;
uint8_t scale = (acc.acc_1G > 1024) ? 8 : 1;
for (i = 0; i < 3; i++)
serialize16(accSmooth[i] / scale);