Skip to content

Commit

Permalink
FlightController: Fix typo in serial port id
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Jan 27, 2020
1 parent 4c355c4 commit b1c1247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/flightController.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,12 @@ class FCDetails {
var name = ports[i].manufacturer + " (" + ports[i].comName + ")";
}
//console.log("Port: ", ports[i].pnpID);
this.serialDevices.push({value: ports[i].comName, label: name, pnp: ports[i].pnpId});
this.serialDevices.push({value: ports[i].comName, label: name, pnpId: ports[i].pnpId});
}
}
//for the Ras Pi's inbuilt UART
if (fs.existsSync('/dev/serial0')) {
this.serialDevices.push({value: '/dev/serial0', label: '/dev/serial0', pnp: ''});
this.serialDevices.push({value: '/dev/serial0', label: '/dev/serial0', pnpId: ''});
}

//has the active device been disconnected?
Expand Down

0 comments on commit b1c1247

Please sign in to comment.