aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test/filetransfer
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2016-06-02 14:57:45 +0200
committerFredrik Thulin <fredrik@thulin.net>2016-06-02 14:57:45 +0200
commit573363d96582af69dbecf6099bd17a3cc41f5d0f (patch)
tree326645f53b7620a77c62d8d4bbeea4b268856c1e /projects/cli-test/filetransfer
parentbfcb358a699e08f738e1b0b46ea6aa821a6b3145 (diff)
parentae1ecf87f6b8d7c34b32af0547f118ff7697c2ef (diff)
Merge branch 'ft-uart_it'
Diffstat (limited to 'projects/cli-test/filetransfer')
-rwxr-xr-xprojects/cli-test/filetransfer6
1 files changed, 2 insertions, 4 deletions
diff --git a/projects/cli-test/filetransfer b/projects/cli-test/filetransfer
index 025a6ac..f704e31 100755
--- a/projects/cli-test/filetransfer
+++ b/projects/cli-test/filetransfer
@@ -77,11 +77,9 @@ def parse_args():
def _write(dst, data):
- for i in range(len(data)):
- dst.write(data[i])
- time.sleep(0.1)
+ dst.write(data)
if len(data) == 4:
- print("Wrote 0x{:02x}{:02x}{:02x}{:02x}".format(ord(data[0]), ord(data[1]), ord(data[2]), ord(data[3])))
+ print("Wrote 0x{!s}".format(data.encode('hex')))
else:
print("Wrote {!r}".format(data))