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:
parent
b2634ab4f2
commit
f70f4c4fff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user