Skip to content

Commit

Permalink
Flightcontroller: Add extra Jetson UARTs
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Jan 6, 2025
1 parent 074f741 commit 539a52d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/flightController.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,12 @@ class FCDetails {
if (fs.existsSync('/dev/ttyTHS1')) {
this.serialDevices.push({ value: '/dev/ttyTHS1', label: '/dev/ttyTHS1', pnpId: '/dev/ttyTHS1' })
}
if (fs.existsSync('/dev/ttyTHS2')) {
this.serialDevices.push({ value: '/dev/ttyTHS2', label: '/dev/ttyTHS2', pnpId: '/dev/ttyTHS2' })
}
if (fs.existsSync('/dev/ttyTHS3')) {
this.serialDevices.push({ value: '/dev/ttyTHS3', label: '/dev/ttyTHS3', pnpId: '/dev/ttyTHS3' })
}

// has the active device been disconnected?
if (this.port) {
Expand Down

0 comments on commit 539a52d

Please sign in to comment.