瀏覽代碼

add missing decimal definitions

bug-decimal-undefined
John Robinson 4 年之前
父節點
當前提交
cfdb0ced68
沒有發現已知的金鑰在資料庫的簽署中
共有 3 個檔案被更改,包括 3 行新增0 行删除
  1. +1
    -0
      boolean-logic-ultimate/BlinkerUltimate.js
  2. +1
    -0
      boolean-logic-ultimate/FilterUltimate.js
  3. +1
    -0
      boolean-logic-ultimate/InterruptFlowUltimate.js

+ 1
- 0
boolean-logic-ultimate/BlinkerUltimate.js 查看文件

@@ -3,6 +3,7 @@ module.exports = function (RED) {
RED.nodes.createNode(this, config);
this.config = config;
var node = this;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
setNodeStatus({ fill: "grey", shape: "ring", text: "|| Off" });
node.tBlinker = null;// Timer Blinker
node.blinkfrequency = typeof config.blinkfrequency === "undefined" ? 500 : config.blinkfrequency;

+ 1
- 0
boolean-logic-ultimate/FilterUltimate.js 查看文件

@@ -3,6 +3,7 @@ module.exports = function(RED) {
RED.nodes.createNode(this,config);
this.config = config;
var node = this;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
setNodeStatus( {fill: "grey" ,shape: "dot" ,text: "Waiting"});
this.on('input', function (msg) {
var sTopic = node.config.name;

+ 1
- 0
boolean-logic-ultimate/InterruptFlowUltimate.js 查看文件

@@ -3,6 +3,7 @@ module.exports = function (RED) {
RED.nodes.createNode(this, config);
this.config = config;
var node = this;
var decimal = /^\s*[+-]{0,1}\s*([\d]+(\.[\d]*)*)\s*$/
setNodeStatus({ fill: "green", shape: "ring", text: "-> pass" });
node.bInviaMessaggio = true; // Send the message or not
node.currentMsg = {}; // Stores current payload

Loading…
取消
儲存