device is starting-trigger enhanced

This commit is contained in:
Jens 2022-07-24 22:50:11 +02:00
parent 7fdbf74906
commit 7a05b9a95b

View File

@ -411,12 +411,17 @@ public class Trigger
boolean checkDeviceStarts()
{
return checkServiceStarts() && !Settings.deviceStartDone;
if(triggerParameter && checkServiceStarts() && !Settings.deviceStartDone)
return true;
else if(!triggerParameter && !checkServiceStarts() && Settings.deviceStartDone)
return true;
else
return false;
// return checkServiceStarts() && !Settings.deviceStartDone && triggerParameter;
}
boolean checkServiceStarts()
{
boolean result = !Settings.serviceStartDone == getTriggerParameter();
return !Settings.serviceStartDone == getTriggerParameter();
// return !Settings.serviceStartDone;
}