mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
removed Arduino pins "warning" - way too agressive...
This commit is contained in:
parent
294224de9b
commit
b1c9e95209
@ -19,7 +19,6 @@ var util = require("util");
|
|||||||
var firmata = require("firmata");
|
var firmata = require("firmata");
|
||||||
var arduinoReady = false;
|
var arduinoReady = false;
|
||||||
var thisboard = null;
|
var thisboard = null;
|
||||||
var pins = [];
|
|
||||||
|
|
||||||
// The Board Definition - this opens (and closes) the connection
|
// The Board Definition - this opens (and closes) the connection
|
||||||
function ArduinoNode(n) {
|
function ArduinoNode(n) {
|
||||||
@ -75,10 +74,6 @@ function DuinoNodeIn(n) {
|
|||||||
this.state = n.state;
|
this.state = n.state;
|
||||||
this.arduino = n.arduino;
|
this.arduino = n.arduino;
|
||||||
this.serverConfig = RED.nodes.getNode(this.arduino);
|
this.serverConfig = RED.nodes.getNode(this.arduino);
|
||||||
if (pins.indexOf(this.pin) > -1) {
|
|
||||||
this.error("Arduino pin being used more than once");
|
|
||||||
}
|
|
||||||
else pins.push(this.pin);
|
|
||||||
if (typeof this.serverConfig === "object") {
|
if (typeof this.serverConfig === "object") {
|
||||||
this.board = this.serverConfig.board;
|
this.board = this.serverConfig.board;
|
||||||
this.repeat = this.serverConfig.repeat;
|
this.repeat = this.serverConfig.repeat;
|
||||||
@ -133,10 +128,6 @@ function DuinoNodeOut(n) {
|
|||||||
this.pin = n.pin;
|
this.pin = n.pin;
|
||||||
this.state = n.state;
|
this.state = n.state;
|
||||||
this.arduino = n.arduino;
|
this.arduino = n.arduino;
|
||||||
if (pins.indexOf(this.pin) > -1) {
|
|
||||||
this.error("Arduino pin being used more than once");
|
|
||||||
}
|
|
||||||
else pins.push(this.pin);
|
|
||||||
this.serverConfig = RED.nodes.getNode(this.arduino);
|
this.serverConfig = RED.nodes.getNode(this.arduino);
|
||||||
if (typeof this.serverConfig === "object") {
|
if (typeof this.serverConfig === "object") {
|
||||||
this.board = this.serverConfig.board;
|
this.board = this.serverConfig.board;
|
||||||
|
Loading…
Reference in New Issue
Block a user