Skip to content

Commit b06f74e

Browse files
committed
FIX
1 parent 708af79 commit b06f74e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

piduck.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ def out(ccl):
8484
rep = ""
8585
if len(ccl[0]) > 0:
8686
for e in ccl[0]:
87-
rep = rep + chr(ccl[e])
87+
rep = rep + chr(e)
8888
else:
8989
rep = rep + chr(0)
9090
rep = rep + chr(0)
9191
for e in ccl[1]:
92-
rep = rep + chr(ccl[e])
92+
rep = rep + chr(e)
9393
rep = rep + chr(0) * (8 - len(rep))
9494
with open("/dev/hidg0", "rb+") as fd:
9595
fd.write(rep.encode())

0 commit comments

Comments
 (0)