Skip to content

Commit

Permalink
replaced bug-fixed custom virtual-serialport with the original depend…
Browse files Browse the repository at this point in the history
…ency, now up to date
  • Loading branch information
roccomuso committed Jan 7, 2017
1 parent 432a160 commit 329ebe8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 98 deletions.
2 changes: 1 addition & 1 deletion components/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var rf433mhz = function(board){

type = (board.platform == 'rpi' && !config.platforms.rpi['use-external-arduino']) ? 'rpi' : 'arduino';
if (type === 'arduino'){
var SerialPort = (process.env.NODE_ENV === 'development') ? require('./virtual-serialport'): require('serialport');
var SerialPort = (process.env.NODE_ENV === 'development') ? require('virtual-serialport'): require('serialport');
serial = new SerialPort(board.port, {
parser: SerialPort.parsers.readline('\n'),
baudRate: config.arduino_baudrate,
Expand Down
96 changes: 0 additions & 96 deletions components/virtual-serialport.js

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iot-433mhz",
"version": "1.0.34",
"version": "1.0.35",
"description": "Node server to handle 433mhz outlets and sensors.",
"main": "index.js",
"preferGlobal": true,
Expand Down Expand Up @@ -52,6 +52,7 @@
"serialport": "4.0.6",
"socket.io": "1.7.1",
"validator": "4.5.0",
"virtual-serialport": "^0.3.3",
"yargs": "4.8.1"
},
"devDependencies": {
Expand Down

0 comments on commit 329ebe8

Please sign in to comment.