mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Split gyro device out of gyro sensor struct
This commit is contained in:
parent
9a8124ffc4
commit
f2b423525d
16 changed files with 168 additions and 77 deletions
|
@ -300,7 +300,7 @@ static void dispatchMeasurementReply(ibusAddress_t address)
|
|||
#ifdef BARO
|
||||
value = (baro.baroTemperature + 5) / 10; // +5 to make integer division rounding correct
|
||||
#else
|
||||
value = telemTemperature1 * 10;
|
||||
value = gyroGetTemperature() * 10;
|
||||
#endif
|
||||
sendIbusMeasurement(address, value + IBUS_TEMPERATURE_OFFSET);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue