- added migration for settings for encoding

This commit is contained in:
Andy Rozman 2019-05-05 18:00:55 +01:00
parent 2ae7d0a292
commit 7aedfde1c9

View file

@ -213,6 +213,15 @@ public class MedtronicPumpPlugin extends PumpPluginAbstract implements PumpInter
SP.putString(MedtronicConst.Prefs.PumpFrequency, MainApp.gs(R.string.medtronic_pump_frequency_us_ca));
}
String encoding = SP.getString(MedtronicConst.Prefs.Encoding, null);
if ("RileyLink 4b6b Encoding".equals(encoding)) {
SP.putString(MedtronicConst.Prefs.Encoding, MainApp.gs(R.string.medtronic_pump_encoding_4b6b_rileylink));
}
if ("Local 4b6b Encoding".equals(encoding)) {
SP.putString(MedtronicConst.Prefs.Encoding, MainApp.gs(R.string.medtronic_pump_encoding_4b6b_local));
}
}