smart-nodes 0.4.20 → 0.4.21

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.
@@ -107,12 +107,12 @@ module.exports = function (RED)
107
107
  }
108
108
  else if (real_topic == "up_down")
109
109
  {
110
- if (new_msg.payload === false)
110
+ if (new_msg.payload === true)
111
111
  {
112
112
  new_msg.topic = "down";
113
113
  delete new_msg.payload;
114
114
  }
115
- else if (new_msg.payload === true)
115
+ else if (new_msg.payload === false)
116
116
  {
117
117
  new_msg.topic = "up";
118
118
  delete new_msg.payload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "smart-nodes",
3
- "version": "0.4.20",
3
+ "version": "0.4.21",
4
4
  "description": "Smart Nodes",
5
5
  "keywords": [
6
6
  "node-red",