mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
add rbe to missing payload compatible list.
This commit is contained in:
parent
3896a82bd8
commit
b112f03a64
@ -25,6 +25,7 @@ module.exports = function(RED) {
|
||||
|
||||
var previous = null;
|
||||
this.on("input",function(msg) {
|
||||
if (msg.hasOwnProperty("payload")) {
|
||||
if (this.func === "rbe") {
|
||||
if (msg.payload != previous) {
|
||||
previous = msg.payload;
|
||||
@ -44,6 +45,7 @@ module.exports = function(RED) {
|
||||
node.warn("no number found in payload");
|
||||
}
|
||||
}
|
||||
} // ignore msg with no payload property.
|
||||
});
|
||||
}
|
||||
RED.nodes.registerType("rbe",RbeNode);
|
||||
|
Loading…
Reference in New Issue
Block a user