@bldgblocks/node-red-contrib-control 0.1.23 → 0.1.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/nodes/on-change-block.js +2 -2
- package/package.json +1 -1
package/nodes/on-change-block.js
CHANGED
|
@@ -137,7 +137,7 @@ module.exports = function(RED) {
|
|
|
137
137
|
send(msg);
|
|
138
138
|
|
|
139
139
|
// Start filter period if applicable
|
|
140
|
-
if (period > 0) {
|
|
140
|
+
if (node.runtime.period > 0) {
|
|
141
141
|
node.runtime.blockTimer = setTimeout(() => {
|
|
142
142
|
node.runtime.blockTimer = null;
|
|
143
143
|
if (node.runtime.pendingMsg) {
|
|
@@ -161,7 +161,7 @@ module.exports = function(RED) {
|
|
|
161
161
|
} else {
|
|
162
162
|
node.status({});
|
|
163
163
|
}
|
|
164
|
-
}, period);
|
|
164
|
+
}, node.runtime.period);
|
|
165
165
|
}
|
|
166
166
|
} else {
|
|
167
167
|
node.status({
|
package/package.json
CHANGED