Cells sensor unit is not modifiable

This commit is contained in:
bsongis
2014-11-09 00:52:22 +01:00
parent 327a5dcffa
commit b84799e845
3 changed files with 4 additions and 6 deletions
-2
View File
@@ -161,8 +161,6 @@ void frskySportSetDefault(int index, uint16_t id, uint8_t instance)
const FrSkySportSensor * sensor = getFrSkySportSensor(id);
if (sensor) {
TelemetryUnit unit = sensor->unit;
if (unit == UNIT_CELLS)
unit = UNIT_VOLTS;
uint8_t prec = min<uint8_t>(2, sensor->prec);
telemetrySensor.init(sensor->name, unit, prec);
if (id >= ADC1_ID && id <= BATT_ID) {