mirror of
https://github.com/opentx/opentx.git
synced 2025-07-25 17:25:13 +03:00
Temperature threshold missing
This commit is contained in:
parent
16bf388c30
commit
32b6726968
1 changed files with 1 additions and 1 deletions
|
@ -968,7 +968,7 @@ void menuProcFrsky(uint8_t event)
|
|||
int16_t barMin = convertTelemValue(source, bmin);
|
||||
int16_t barMax = convertTelemValue(source, bmax);
|
||||
if (threshold) {
|
||||
thresholdX = (uint8_t)((int32_t)100 * (threshold - barMin) / (barMax - barMin));
|
||||
thresholdX = (uint8_t)(((int32_t)(threshold - barMin) * (int32_t)100) / (barMax - barMin));
|
||||
if (thresholdX > 100)
|
||||
thresholdX = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue