mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 12:55:12 +03:00
kt to mph conversion taken from last commit (everything else removed, it
breaks 9x support)
This commit is contained in:
parent
8fa2c21a47
commit
90381e369d
1 changed files with 3 additions and 1 deletions
|
@ -193,7 +193,9 @@ RawSourceRange RawSource::getRange(const ModelData & model, const GeneralSetting
|
|||
result.step = singleprec ? 2 : 1;
|
||||
result.max = singleprec ? (2*255) : 2000;
|
||||
if (firmware->getCapability(Imperial) || settings.imperial) {
|
||||
result.unit = QObject::tr("kn");
|
||||
result.step *= 1.150779;
|
||||
result.max *= 1.150779;
|
||||
result.unit = QObject::tr("mph");
|
||||
}
|
||||
else {
|
||||
result.step *= 1.852;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue