1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

remove firmata/node_modules path in require('serialport') (#271)

serialport is not found when installing the npm module local (instead of 'npm install node-red-node-arduino -g')
This commit is contained in:
Bart 2017-01-29 18:39:44 +01:00 committed by Dave Conway-Jones
parent b2634ab4f2
commit f70f4c4fff

View File

@ -3,7 +3,7 @@ module.exports = function(RED) {
"use strict";
var Board = require('firmata');
var SP = require('firmata/node_modules/serialport');
var SP = require('serialport');
// The Board Definition - this opens (and closes) the connection
function ArduinoNode(n) {