- adding configuration option
This commit is contained in:
parent
4917292806
commit
e5e291c4da
4 changed files with 27 additions and 8 deletions
|
@ -83,6 +83,11 @@ public class MedtronicHistoryData {
|
|||
|
||||
private long lastIdUsed = 0;
|
||||
|
||||
/**
|
||||
* Double bolus debug. We seem to have small problem with double Boluses (or sometimes also missing boluses
|
||||
* from history. This flag turns on debugging for that (default is off=false)... Debuging is pretty detailed,
|
||||
* so log files will get bigger.
|
||||
*/
|
||||
public static boolean doubleBolusDebug = true;
|
||||
|
||||
|
||||
|
@ -1290,8 +1295,6 @@ public class MedtronicHistoryData {
|
|||
}
|
||||
}
|
||||
|
||||
//LocalDateTime oldestEntryTime = null;
|
||||
|
||||
if (doubleBolusDebug)
|
||||
LOG.debug("DoubleBolusDebug: getOldestTimestamp. Oldest entry found: time={}, object={}", dt, currentTreatment);
|
||||
|
||||
|
|
|
@ -167,6 +167,11 @@
|
|||
<item>@string/medtronic_pump_encoding_4b6b_rileylink</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="onOff">
|
||||
<item>@string/common_on</item>
|
||||
<item>@string/common_off</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="medtronicEncodingValues">
|
||||
<item>@string/key_medtronic_pump_encoding_4b6b_local</item>
|
||||
<item>@string/key_medtronic_pump_encoding_4b6b_rileylink</item>
|
||||
|
|
|
@ -1451,6 +1451,7 @@
|
|||
<string name="medtronic_pump_battery_no">Not selected (Simple 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_bolus_debugging">Bolus/Treatments Debugging</string>
|
||||
|
||||
<!-- RL BLE Scanning -->
|
||||
<string name="rileylink_scanner_scan_scan">SCAN</string>
|
||||
|
@ -1608,5 +1609,7 @@
|
|||
<string name="unit_minute_short">min</string>
|
||||
<string name="key_wizard_calculation_visible" translatable="false">wizard_calculation_visible</string>
|
||||
<string name="format_carbs">%1$dg</string>
|
||||
<string name="common_on">On</string>
|
||||
<string name="common_off">Off</string>
|
||||
|
||||
</resources>
|
||||
|
|
|
@ -60,6 +60,14 @@
|
|||
android:selectable="true"
|
||||
android:title="@string/medtronic_pump_encoding" />
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/key_medtronic_pump_encoding_4b6b_rileylinkddddd"
|
||||
android:entries="@array/medtronicEncoding"
|
||||
android:entryValues="@array/medtronicEncodingValues"
|
||||
android:key="@string/key_medtronic_encoding"
|
||||
android:selectable="true"
|
||||
android:title="@string/medtronic_bolus_debugging" />
|
||||
|
||||
<ListPreference
|
||||
android:defaultValue="@string/key_medtronic_pump_battery_no"
|
||||
android:entries="@array/medtronicBatteryType"
|
||||
|
|
Loading…
Reference in a new issue