diff options
| author | PMR <pmr@pmr-lander> | 2020-11-25 11:13:43 +0000 |
|---|---|---|
| committer | PMR <pmr@pmr-lander> | 2020-11-25 11:13:43 +0000 |
| commit | 2dacbe4532b74ca411c8ea10c3efe214dc7f2108 (patch) | |
| tree | ec284792c661f55134f8ea373507292a753909c5 | |
| parent | 178e1e41bf070b7a081e2a40661a4bb55b23cd8c (diff) | |
| parent | 10a3c02ebc745d9a74c1d4ccfdd39d2962653b80 (diff) | |
Merge #393798 from ~meribold/plainbox-provider-checkbox:camera-qrcode-tty-detect
| -rwxr-xr-x | bin/roundtrip_qr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/roundtrip_qr.py b/bin/roundtrip_qr.py index 3c1b98a..4cb6592 100755 --- a/bin/roundtrip_qr.py +++ b/bin/roundtrip_qr.py @@ -54,7 +54,7 @@ def capture_webcam(name): def generate_data(): - return ''.join(random.choice(string.ascii_letters) for i in range(20)) + return ''.join(random.choice(string.ascii_letters) for i in range(10)) def generate_qr_code(data): @@ -66,7 +66,7 @@ def display_code(qr): # clear the tty so the qr is always printed at the top of the sceen term.write(str.encode('\033c')) # print the qr code - term.write(qr.terminal(quiet_zone=5).encode()) + term.write(qr.terminal(quiet_zone=1).encode()) def decode_image(filename): |
