mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
FrSky Telemetry - Constrain the fuel level value to prevent erroneous
display on some FrSky gear. Note this made no difference when using latest OpenTX and an unmodified XJT module. Closes #84.
This commit is contained in:
parent
3f533f0eca
commit
94c1023493
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ static void sendAmperage(void)
|
|||
static void sendFuelLevel(void)
|
||||
{
|
||||
sendDataHead(ID_FUEL_LEVEL);
|
||||
serialize16((uint16_t)mAhDrawn);
|
||||
serialize16((uint16_t)constrain(mAhDrawn, 0, 0xFFFF));
|
||||
}
|
||||
|
||||
static void sendHeading(void)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue