Actually do something with the basal rate profile after force-reading.

This commit is contained in:
Johannes Mockenhaupt 2018-01-28 23:23:44 +01:00
parent eb7ec24335
commit 9f5ffc6646
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -1021,7 +1021,10 @@ public class ComboPlugin implements PluginBase, PumpInterface, ConstraintsInterf
.pumpErrorHistory(PumpHistoryRequest.FULL) .pumpErrorHistory(PumpHistoryRequest.FULL)
.tddHistory(PumpHistoryRequest.FULL) .tddHistory(PumpHistoryRequest.FULL)
); );
runCommand(MainApp.gs(R.string.combo_actvity_reading_basal_profile), 2, ruffyScripter::readBasalProfile); CommandResult readBasalResult = runCommand(MainApp.gs(R.string.combo_actvity_reading_basal_profile), 2, ruffyScripter::readBasalProfile);
if (readBasalResult.success) {
pump.basalProfile = readBasalResult.basalProfile;
}
ruffyScripter.disconnect(); ruffyScripter.disconnect();
} }