Skip to content

Commit b629fab

Browse files
authored
Update jsdevices.h
Move EV_SWDCON location so it doesn't break the Bangle.js emulators which have hard-coded IDs
1 parent 7d2312c commit b629fab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/jsdevices.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ typedef enum {
4949
#endif
5050
EV_SERIAL_DEVICE_STATE_START, // The point at which we start storing device state (jshSerialDevice*)
5151
_EV_SERIAL_DEVICE_STATE_START_MINUS_ONE=EV_SERIAL_DEVICE_STATE_START-1, // means that the next enum should==EV_SERIAL_DEVICE_STATE_START
52-
#ifdef USE_SWDCON
53-
EV_SWDCON, /// console over in memory buffer accessible via SWD
54-
#endif
5552
#ifdef USB
5653
EV_USBSERIAL, ///< USB CDC Serial Data
5754
#endif
5855
#ifdef BLUETOOTH
5956
EV_BLUETOOTH, ///< Bluetooth LE
6057
#endif
58+
#ifdef USE_SWDCON
59+
EV_SWDCON, /// console over in memory buffer accessible via SWD
60+
#endif
6161
#if ESPR_USART_COUNT>=1
6262
EV_SERIAL1, // Used for IO for UARTS
6363
#endif

0 commit comments

Comments
 (0)