Skip to content

Commit

Permalink
Adding support for UART0 (#4283)
Browse files Browse the repository at this point in the history
* Adding support for UART0

* May not require translation
  • Loading branch information
blckmn authored Dec 27, 2024
1 parent 0bfb0b3 commit 0684d0e
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions src/js/tabs/ports.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,20 +112,31 @@ ports.initialize = function (callback) {
const VCP_PORT_IDENTIFIER = 20;

const portIdentifierToNameMapping = {
0: 'UART1',
1: 'UART2',
2: 'UART3',
3: 'UART4',
4: 'UART5',
5: 'UART6',
6: 'UART7',
7: 'UART8',
8: 'UART9',
9: 'UART10',
20: 'USB VCP',
30: 'SOFTSERIAL1',
31: 'SOFTSERIAL2',
40: 'LPUART1',
0: 'UART1',
1: 'UART2',
2: 'UART3',
3: 'UART4',
4: 'UART5',
5: 'UART6',
6: 'UART7',
7: 'UART8',
8: 'UART9',
9: 'UART10',
20: 'USB VCP',
30: 'SOFTSERIAL1',
31: 'SOFTSERIAL2',
40: 'LPUART1',
50: 'UART0',
51: 'UART1',
52: 'UART2',
53: 'UART3',
54: 'UART4',
55: 'UART5',
56: 'UART6',
57: 'UART7',
58: 'UART8',
59: 'UART9',
60: 'UART10',
};

let gpsBaudrateElement = $('select.gps_baudrate');
Expand Down

0 comments on commit 0684d0e

Please sign in to comment.