Hallo miteinander,
bitte zum Test in der Version 3.0 die Funktion LB_LBSID_isLBSActive (ab Zeile 1178) mit diesem Code hier ersetzen:
Wird dann A8 wieder korrekt gesetzt?
bitte zum Test in der Version 3.0 die Funktion LB_LBSID_isLBSActive (ab Zeile 1178) mit diesem Code hier ersetzen:
Code:
function LB_LBSID_isLBSActive($E, $updateOutputEvenIfNoChange)
{
$lbsActive = $E[$GLOBALS["LB_LBSID_INPUT_ActivationState"]]['value'];
$lbsActiveRefreshed = $E[$GLOBALS["LB_LBSID_INPUT_ActivationState"]]['refresh'];
if ($lbsActiveRefreshed == 1) {
if ($lbsActive == 0) {
setLogicElementVar($GLOBALS["LB_LBSID_id"], $GLOBALS["LB_LBSID_INTERNAL_ActivationState"], 0);
setLogicLinkAusgang($GLOBALS["LB_LBSID_id"], $GLOBALS["LB_LBSID_OUTPUT_ActivationState"], 0);
LB_LBSID_debug(true, "Disabled LBS");
return false;
} else {
setLogicElementVar($GLOBALS["LB_LBSID_id"], $GLOBALS["LB_LBSID_INTERNAL_ActivationState"], 1);
setLogicLinkAusgang($GLOBALS["LB_LBSID_id"], $GLOBALS["LB_LBSID_OUTPUT_ActivationState"], 1);
// If LBS is reactivated, trigger it with a short timer of 1s
$E[$GLOBALS["LB_LBSID_INPUT_ShadowOpenSlatDelay"]]['value'] = 1;
$E[$GLOBALS["LB_LBSID_INPUT_ShadowOpenShutterDelay"]]['value'] = 1;
$E[$GLOBALS["LB_LBSID_INPUT_DawnOpenSlatDelay"]]['value'] = 1;
$E[$GLOBALS["LB_LBSID_INPUT_DawnOpenShutterDelay"]]['value'] = 1;
$E[$GLOBALS["LB_LBSID_INPUT_TriggerAlways"]]['refresh'] = 1;
LB_LBSID_debug(true, "Reactivated LBS");
}
} else if (getLogicElementVar($GLOBALS["LB_LBSID_id"], $GLOBALS["LB_LBSID_INTERNAL_ActivationState"]) == 0) {
LB_LBSID_stopTimer();
LB_LBSID_debug(true, "LBS is disabled, nothing changed");
return false;
}
return true;
}



.
Kommentar