Add NiMH battery option for Medtronic pumps
This commit is contained in:
parent
0ff7702b1a
commit
413553a9c2
4 changed files with 9 additions and 3 deletions
|
@ -40,11 +40,12 @@ public class BatteryStatusDTO {
|
||||||
|
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return String.format(Locale.ENGLISH, "BatteryStatusDTO [voltage=%.2f, alkaline=%d, lithium=%d, niZn={}]",
|
return String.format(Locale.ENGLISH, "BatteryStatusDTO [voltage=%.2f, alkaline=%d, lithium=%d, niZn=%d, nimh=%d]",
|
||||||
voltage == null ? 0.0f : voltage,
|
voltage == null ? 0.0f : voltage,
|
||||||
getCalculatedPercent(BatteryType.Alkaline),
|
getCalculatedPercent(BatteryType.Alkaline),
|
||||||
getCalculatedPercent(BatteryType.Lithium),
|
getCalculatedPercent(BatteryType.Lithium),
|
||||||
getCalculatedPercent(BatteryType.NiZn));
|
getCalculatedPercent(BatteryType.NiZn),
|
||||||
|
getCalculatedPercent(BatteryType.NiMH));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,8 @@ public enum BatteryType {
|
||||||
None(R.string.key_medtronic_pump_battery_no, 0, 0),
|
None(R.string.key_medtronic_pump_battery_no, 0, 0),
|
||||||
Alkaline(R.string.key_medtronic_pump_battery_alkaline, 1.20d, 1.47d), //
|
Alkaline(R.string.key_medtronic_pump_battery_alkaline, 1.20d, 1.47d), //
|
||||||
Lithium(R.string.key_medtronic_pump_battery_lithium, 1.22d, 1.64d), //
|
Lithium(R.string.key_medtronic_pump_battery_lithium, 1.22d, 1.64d), //
|
||||||
NiZn(R.string.key_medtronic_pump_battery_nizn, 1.40d, 1.70d) //
|
NiZn(R.string.key_medtronic_pump_battery_nizn, 1.40d, 1.70d), //
|
||||||
|
NiMH(R.string.key_medtronic_pump_battery_nimh, 1.10d, 1.40d) //
|
||||||
;
|
;
|
||||||
|
|
||||||
private final String description;
|
private final String description;
|
||||||
|
|
|
@ -191,6 +191,7 @@
|
||||||
<item>@string/medtronic_pump_battery_alkaline</item>
|
<item>@string/medtronic_pump_battery_alkaline</item>
|
||||||
<item>@string/medtronic_pump_battery_lithium</item>
|
<item>@string/medtronic_pump_battery_lithium</item>
|
||||||
<item>@string/medtronic_pump_battery_nizn</item>
|
<item>@string/medtronic_pump_battery_nizn</item>
|
||||||
|
<item>@string/medtronic_pump_battery_nimh</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="medtronicBatteryTypeValues">
|
<string-array name="medtronicBatteryTypeValues">
|
||||||
|
@ -198,6 +199,7 @@
|
||||||
<item>@string/key_medtronic_pump_battery_alkaline</item>
|
<item>@string/key_medtronic_pump_battery_alkaline</item>
|
||||||
<item>@string/key_medtronic_pump_battery_lithium</item>
|
<item>@string/key_medtronic_pump_battery_lithium</item>
|
||||||
<item>@string/key_medtronic_pump_battery_nizn</item>
|
<item>@string/key_medtronic_pump_battery_nizn</item>
|
||||||
|
<item>@string/key_medtronic_pump_battery_nimh</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="smbMaxMinutes">
|
<string-array name="smbMaxMinutes">
|
||||||
|
|
|
@ -1449,6 +1449,7 @@
|
||||||
<string name="key_medtronic_pump_battery_alkaline" translatable="false">medtronic_pump_battery_alkaline</string>
|
<string name="key_medtronic_pump_battery_alkaline" translatable="false">medtronic_pump_battery_alkaline</string>
|
||||||
<string name="key_medtronic_pump_battery_lithium" translatable="false">medtronic_pump_battery_lithium</string>
|
<string name="key_medtronic_pump_battery_lithium" translatable="false">medtronic_pump_battery_lithium</string>
|
||||||
<string name="key_medtronic_pump_battery_nizn" translatable="false">medtronic_pump_battery_nizn</string>
|
<string name="key_medtronic_pump_battery_nizn" translatable="false">medtronic_pump_battery_nizn</string>
|
||||||
|
<string name="key_medtronic_pump_battery_nimh" translatable="false">medtronic_pump_battery_nimh</string>
|
||||||
|
|
||||||
<string name="medtronic_serial_number">Pump Serial Number</string>
|
<string name="medtronic_serial_number">Pump Serial Number</string>
|
||||||
<string name="medtronic_pump_type">Pump Type</string>
|
<string name="medtronic_pump_type">Pump Type</string>
|
||||||
|
@ -1469,6 +1470,7 @@
|
||||||
<string name="medtronic_pump_battery_alkaline">Alkaline (Extended view)</string>
|
<string name="medtronic_pump_battery_alkaline">Alkaline (Extended view)</string>
|
||||||
<string name="medtronic_pump_battery_lithium">Lithium (Extended view)</string>
|
<string name="medtronic_pump_battery_lithium">Lithium (Extended view)</string>
|
||||||
<string name="medtronic_pump_battery_nizn">NiZn (Extended view)</string>
|
<string name="medtronic_pump_battery_nizn">NiZn (Extended view)</string>
|
||||||
|
<string name="medtronic_pump_battery_nimh">NiMH (Extended view)</string>
|
||||||
<string name="medtronic_bolus_debugging">Bolus/Treatments Debugging</string>
|
<string name="medtronic_bolus_debugging">Bolus/Treatments Debugging</string>
|
||||||
|
|
||||||
<!-- RL BLE Scanning -->
|
<!-- RL BLE Scanning -->
|
||||||
|
|
Loading…
Reference in a new issue