Skip to content

Commit

Permalink
use sv.Variable() instead of State() to prevent any triggering
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Nov 20, 2024
1 parent a32090a commit 0d27400
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,11 @@
+ rega_script {
+ object sv=dom.GetObject(ID_GW_SYSALARM);
+ if(sv != null) {
+ sv.State(0);
+ sv.Variable(0);
+ }
+ sv=dom.GetObject(ID_GW_SYSSERVICE);
+ if(sv != null) {
+ sv.State(0);
+ sv.Variable(0);
+ }
+ }
+}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ proc clear_sysvars {} {
rega_script {
object sv=dom.GetObject(ID_GW_SYSALARM);
if(sv != null) {
sv.State(0);
sv.Variable(0);
}
sv=dom.GetObject(ID_GW_SYSSERVICE);
if(sv != null) {
sv.State(0);
sv.Variable(0);
}
}
}
Expand Down

0 comments on commit 0d27400

Please sign in to comment.