Some minor tweaks.
This commit is contained in:
parent
3cccf287da
commit
971a97a9e3
|
@ -76,7 +76,7 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis
|
|||
public boolean onLongClick(View view) {
|
||||
switch (view.getId()) {
|
||||
case R.id.combo_refresh:
|
||||
new Thread(() -> ComboPlugin.getPlugin().forceFullHistoryRead()).start();
|
||||
new Thread(() -> ComboPlugin.getPlugin().readAllPumpData()).start();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
|
|
@ -274,7 +274,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
|||
return;
|
||||
}
|
||||
|
||||
// ensure time and date(!) are current
|
||||
// ensure time and date(!) are current; connect triggers a notification on mismatch
|
||||
/* menu not supported by ruffy
|
||||
if (!pump.initialized) {
|
||||
if (!runCommand("Updating pump clock", 2, ruffyScripter::setDateAndTime).success) {
|
||||
|
@ -958,7 +958,7 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
|||
}
|
||||
}
|
||||
|
||||
void forceFullHistoryRead() {
|
||||
void readAllPumpData() {
|
||||
readHistory(new PumpHistoryRequest()
|
||||
.bolusHistory(PumpHistoryRequest.FULL)
|
||||
.tbrHistory(PumpHistoryRequest.FULL)
|
||||
|
|
|
@ -27,4 +27,11 @@ public class BasalProfile {
|
|||
public int hashCode() {
|
||||
return Arrays.hashCode(hourlyRates);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "BasalProfile{" +
|
||||
"hourlyRates=" + Arrays.toString(hourlyRates) +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue