Skip to content

Commit

Permalink
Fix a SA error
Browse files Browse the repository at this point in the history
  • Loading branch information
wenchungw committed Sep 13, 2024
1 parent a724849 commit bfec7a9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/dpu_tty.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,7 @@ def main():
dpu_tty, dpu_baud = get_dpu_tty(args.slot, args.tty, args.baud)
# Use UART console utility for error checking of dpu_tty and dpu_baud.

cmd = "%s -b %s /dev/%s" % (UART_CON, dpu_baud, dpu_tty)
print(cmd)
p = subprocess.run(cmd, shell=True, universal_newlines=True)

p = subprocess.run([UART_CON, '-b', dpu_baud, '/dev/%s' % dpu_tty])
if p.returncode:
print('{} failed'.format(p.args))
if p.stdout:
Expand Down

0 comments on commit bfec7a9

Please sign in to comment.