[ARM boards] If I am not mistaken, the imperial conversions should work

automatically for meters/feet in Telemetry
This commit is contained in:
Bertrand Songis
2015-04-01 07:17:08 +02:00
parent 8dadb5346b
commit ad1506a97b
+6 -1
View File
@@ -257,10 +257,15 @@ void frskySportSetDefault(int index, uint16_t id, uint8_t instance)
telemetrySensor.custom.ratio = 132;
telemetrySensor.filter = 1;
}
if (unit == UNIT_RPMS) {
else if (unit == UNIT_RPMS) {
telemetrySensor.custom.ratio = 1;
telemetrySensor.custom.offset = 1;
}
else if (unit == UNIT_METERS) {
if (IS_IMPERIAL_ENABLE()) {
telemetrySensor.unit = UNIT_FEET;
}
}
}
else {
telemetrySensor.init(id);