Skip to content

Commit

Permalink
Merge pull request #363 from AdamKlekowski/master
Browse files Browse the repository at this point in the history
remove hardcode
  • Loading branch information
marcin-usielski authored Nov 18, 2020
2 parents 6c3762a + 5600eaf commit 2005006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moler/cmd/at/plink_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def build_command_string(self):
# 1) we want entry prompt like 'COM5> port READY' (plink -serial attaches AT console which is silent/no prompt)
# 2) we want to remove all terminal ctrl codes (especially on cygwin + winpty environment)
# 3) we need to simulate Ctrl-C output after plink completion to allow using ctrl_c unix command to stop plink
awk_cmd = 'awk \'BEGIN {print "COM5> port READY"} {print} END {print "^C"}\''
awk_cmd = 'awk \'BEGIN {{print "{}> port READY"}} {{print}} END {{print "^C"}}\''.format(self.serial_devname)
proxy_command = "plink -serial {} |& {}".format(self.serial_devname, awk_cmd)
return proxy_command

Expand Down

0 comments on commit 2005006

Please sign in to comment.