ComboFragment: use queue to refresh state, explicit disconnects for tdd/alert.s
This commit is contained in:
parent
b8ad44ba43
commit
3316ab2081
|
@ -75,7 +75,7 @@ public class ComboFragment extends SubscriberFragment implements View.OnClickLis
|
|||
public void onClick(View view) {
|
||||
switch (view.getId()) {
|
||||
case R.id.combo_refresh:
|
||||
new Thread(() -> ComboPlugin.getPlugin().getPumpStatus()).start();
|
||||
ConfigBuilderPlugin.getCommandQueue().readStatus("User request", null);
|
||||
break;
|
||||
case R.id.combo_error_history:
|
||||
ComboAlertHistoryDialog ehd = new ComboAlertHistoryDialog();
|
||||
|
|
|
@ -869,14 +869,19 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
|||
}
|
||||
}
|
||||
|
||||
// TODO queue
|
||||
void readTddData() {
|
||||
readHistory(new PumpHistoryRequest().tddHistory(PumpHistoryRequest.FULL));
|
||||
ruffyScripter.disconnect();
|
||||
}
|
||||
|
||||
// TODO queue
|
||||
void readAlertData() {
|
||||
readHistory(new PumpHistoryRequest().pumpErrorHistory(PumpHistoryRequest.FULL));
|
||||
ruffyScripter.disconnect();
|
||||
}
|
||||
|
||||
// TODO queue
|
||||
void readAllPumpData() {
|
||||
long lastCheckInitiated = System.currentTimeMillis();
|
||||
|
||||
|
@ -905,6 +910,8 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
|
|||
}
|
||||
|
||||
pump.basalProfile = basalResult.basalProfile;
|
||||
|
||||
ruffyScripter.disconnect();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue