smart-nodes 0.3.31 → 0.3.32
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/hysteresis/hysteresis.js +4 -1
- package/package.json +1 -1
package/hysteresis/hysteresis.js
CHANGED
|
@@ -139,7 +139,10 @@ module.exports = function (RED)
|
|
|
139
139
|
if (value <= node_settings.setpoint - node_settings.hysteresis && node_settings.last_result !== false)
|
|
140
140
|
return false;
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
if (send_only_change)
|
|
143
|
+
return null;
|
|
144
|
+
|
|
145
|
+
return node_settings.last_result;
|
|
143
146
|
}
|
|
144
147
|
|
|
145
148
|
let setStatus = noChange =>
|