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:
parent
5e84431e7a
commit
e9a46c6ebb
21 changed files with 41 additions and 44 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue