Skip to content

Commit

Permalink
Update device console
Browse files Browse the repository at this point in the history
Signed-off-by: Karel Blavka <[email protected]>
  • Loading branch information
blavka committed Jan 24, 2025
1 parent d8bb599 commit a9c58ad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions hardwario/cli/device/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,9 @@ def command_console(ctx, reset, latency, history_file, console_file):
device_info = prog.read_device_info()
logger.info(f'device info: {device_info}')

device_version = str(device_info[0])

device_version = device_info[0].name
end = device_version.rfind('_')
chip_name = device_version[len('DeviceVersion.'):end]
chip_name = device_version[:end]

prog = ctx.obj['prog']

Expand Down

0 comments on commit a9c58ad

Please sign in to comment.