Skip to content

Commit

Permalink
fake port bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
roccomuso committed Nov 30, 2016
1 parent 976e4c6 commit 23220f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports = function(argv, module_callback){
function choose_port(whatToUse){
var serialPort = require('serialport');
serialPort.list(function (err, ports) {
if (process.env.NODE_ENV === 'development') ports.push('/dev/ttyVIRTUAL');
if (process.env.NODE_ENV === 'development') ports.push({comName: '/dev/ttyVIRTUAL'});
if (ports.length === 0) { debug('No ports available'); return;}

console.log('Selectable serial ports:');
Expand Down

0 comments on commit 23220f7

Please sign in to comment.