Enable beep again

This commit is contained in:
redfast00 2019-10-01 00:33:09 +02:00
parent 94a295b917
commit 54c84edde2
No known key found for this signature in database
GPG Key ID: 5946E0E34FD0553C
1 changed files with 5 additions and 4 deletions

View File

@ -118,10 +118,11 @@ def reset_color():
change_color('Z', 'g')
release_keys()
def beep():
write_report(NULL_CHAR * 2 + chr(0x29) + 'ff' + NULL_CHAR * 3)
def beep(code='ff'):
write_report(NULL_CHAR * 2 + chr(0x29) + NULL_CHAR * 5)
release_keys()
print('beep')
for char in code:
printchar(char)
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
@ -144,7 +145,7 @@ class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
printstring('\n' * 32)
else:
printstring(message + '\n')
# beep()
beep()
reset_color()
file.flush()