From 410b9da55fcc7408934a533a82cde37711896189 Mon Sep 17 00:00:00 2001 From: Eloi Torrents Date: Fri, 25 Aug 2023 21:21:32 +0200 Subject: [PATCH] Simplify send_cmd in gadgetbridge.py Signed-off-by: Eloi Torrents --- wasp/gadgetbridge.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/wasp/gadgetbridge.py b/wasp/gadgetbridge.py index 63bd58a..0b4c95f 100644 --- a/wasp/gadgetbridge.py +++ b/wasp/gadgetbridge.py @@ -70,9 +70,8 @@ def GB(cmd): def send_cmd(cmd = ''): print('\r') - for i in range(1): - for i in range(0, len(cmd), 20): - print(cmd[i: i + 20], end='') - time.sleep(0.2) - print(' ') + for i in range(0, len(cmd), 20): + print(cmd[i: i + 20], end='') + time.sleep(0.2) + print(' ') print(' ') \ No newline at end of file