Skip to content

Commit 830de92

Browse files
noopwafelsvenpeter42
authored andcommitted
dockchannel_uart: Update python-side IODEV enums
Signed-off-by: Alyssa Milburn <[email protected]>
1 parent e3b42cb commit 830de92

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

proxyclient/m1n1/proxy.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -444,16 +444,17 @@ class AlignmentError(Exception):
444444

445445
class IODEV(IntEnum):
446446
UART = 0
447-
FB = 1
448-
USB_VUART = 2
449-
USB0 = 3
450-
USB1 = 4
451-
USB2 = 5
452-
USB3 = 6
453-
USB4 = 7
454-
USB5 = 8
455-
USB6 = 9
456-
USB7 = 10
447+
DOCKCHANNEL_UART = 1
448+
FB = 2
449+
USB_VUART = 3
450+
USB0 = 4
451+
USB1 = 5
452+
USB2 = 6
453+
USB3 = 7
454+
USB4 = 8
455+
USB5 = 9
456+
USB6 = 10
457+
USB7 = 11
457458

458459
class USAGE(IntFlag):
459460
CONSOLE = (1 << 0)

src/iodev.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#define USB_IODEV_COUNT 8
1010

11+
// enum must be kept in sync with IODEV in proxyclient/m1n1/proxy.py
1112
typedef enum _iodev_id_t {
1213
IODEV_UART,
1314
IODEV_DOCKCHANNEL_UART,

0 commit comments

Comments
 (0)