Skip to content

Commit

Permalink
Fixes the device short name
Browse files Browse the repository at this point in the history
This means that multiple boards wih the same name
will now show up properly.

The boards command now properly shows the serial port.
  • Loading branch information
dhylands committed May 24, 2019
1 parent 8f446e7 commit 1277d1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rshell/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1545,7 +1545,6 @@ def __init__(self, port, baud, wait):
except KeyboardInterrupt:
raise DeviceError('Interrupted')

self.dev_name_short = port
self.dev_name_long = '%s at %d baud' % (port, baud)

try:
Expand Down Expand Up @@ -1598,6 +1597,7 @@ def __init__(self, port, baud, wait):

# In theory the serial port is now ready to use
Device.__init__(self, pyb)
self.dev_name_short = port

def default_board_name(self):
return 'pyboard'
Expand Down

0 comments on commit 1277d1d

Please sign in to comment.