rename safety to tempBasalFallback
This commit is contained in:
parent
a6a4a8837d
commit
85bb085188
5 changed files with 13 additions and 13 deletions
|
@ -11,5 +11,5 @@ public interface APSInterface {
|
|||
public APSResult getLastAPSResult();
|
||||
public Date getLastAPSRun();
|
||||
|
||||
public void invoke(String initiator, boolean safety);
|
||||
public void invoke(String initiator, boolean tempBasalFallback);
|
||||
}
|
||||
|
|
|
@ -258,7 +258,7 @@ public class LoopPlugin extends PluginBase {
|
|||
invoke(initiator, allowNotification, false);
|
||||
}
|
||||
|
||||
public void invoke(String initiator, boolean allowNotification, boolean safety) {
|
||||
public void invoke(String initiator, boolean allowNotification, boolean tempBasalFallback) {
|
||||
try {
|
||||
if (Config.logFunctionCalls)
|
||||
log.debug("invoke from " + initiator);
|
||||
|
@ -289,7 +289,7 @@ public class LoopPlugin extends PluginBase {
|
|||
|
||||
APSInterface usedAPS = ConfigBuilderPlugin.getActiveAPS();
|
||||
if (usedAPS != null && ((PluginBase) usedAPS).isEnabled(PluginType.APS)) {
|
||||
usedAPS.invoke(initiator, safety);
|
||||
usedAPS.invoke(initiator, tempBasalFallback);
|
||||
result = usedAPS.getLastAPSResult();
|
||||
}
|
||||
|
||||
|
@ -364,9 +364,9 @@ public class LoopPlugin extends PluginBase {
|
|||
} else {
|
||||
new Thread(() -> {
|
||||
SystemClock.sleep(1000);
|
||||
LoopPlugin.getPlugin().invoke("safety", allowNotification, true);
|
||||
LoopPlugin.getPlugin().invoke("tempBasalFallback", allowNotification, true);
|
||||
}).start();
|
||||
FabricPrivacy.getInstance().logCustom(new CustomEvent("Loop_Run_Safety"));
|
||||
FabricPrivacy.getInstance().logCustom(new CustomEvent("Loop_Run_TempBasalFallback"));
|
||||
}
|
||||
MainApp.bus().post(new EventLoopUpdateGui());
|
||||
}
|
||||
|
|
|
@ -88,8 +88,8 @@ public class OpenAPSAMAPlugin extends PluginBase implements APSInterface {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void invoke(String initiator, boolean safety) {
|
||||
log.debug("invoke from " + initiator + " safety: " + safety);
|
||||
public void invoke(String initiator, boolean tempBasalFallback) {
|
||||
log.debug("invoke from " + initiator + " safety: " + tempBasalFallback);
|
||||
lastAPSResult = null;
|
||||
DetermineBasalAdapterAMAJS determineBasalAdapterAMAJS;
|
||||
try {
|
||||
|
|
|
@ -88,8 +88,8 @@ public class OpenAPSMAPlugin extends PluginBase implements APSInterface {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void invoke(String initiator, boolean safety) {
|
||||
log.debug("invoke from " + initiator + " safety: " + safety);
|
||||
public void invoke(String initiator, boolean tempBasalFallback) {
|
||||
log.debug("invoke from " + initiator + " safety: " + tempBasalFallback);
|
||||
lastAPSResult = null;
|
||||
DetermineBasalAdapterMAJS determineBasalAdapterMAJS = null;
|
||||
try {
|
||||
|
|
|
@ -91,8 +91,8 @@ public class OpenAPSSMBPlugin extends PluginBase implements APSInterface {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void invoke(String initiator, boolean safety) {
|
||||
log.debug("invoke from " + initiator + " safety: " + safety);
|
||||
public void invoke(String initiator, boolean tempBasalFallback) {
|
||||
log.debug("invoke from " + initiator + " safety: " + tempBasalFallback);
|
||||
lastAPSResult = null;
|
||||
DetermineBasalAdapterSMBJS determineBasalAdapterSMBJS = null;
|
||||
try {
|
||||
|
@ -184,11 +184,11 @@ public class OpenAPSSMBPlugin extends PluginBase implements APSInterface {
|
|||
lastAutosensResult = new AutosensResult();
|
||||
}
|
||||
|
||||
Constraint<Boolean> smbAllowed = new Constraint<>(!safety);
|
||||
Constraint<Boolean> smbAllowed = new Constraint<>(!tempBasalFallback);
|
||||
MainApp.getConstraintChecker().isSMBModeEnabled(smbAllowed);
|
||||
inputConstraints.copyReasons(smbAllowed);
|
||||
|
||||
Constraint<Boolean> advancedFiltering = new Constraint<>(!safety);
|
||||
Constraint<Boolean> advancedFiltering = new Constraint<>(!tempBasalFallback);
|
||||
MainApp.getConstraintChecker().isAdvancedFilteringEnabled(advancedFiltering);
|
||||
inputConstraints.copyReasons(advancedFiltering);
|
||||
|
||||
|
|
Loading…
Reference in a new issue