Enable beep again
This commit is contained in:
parent
94a295b917
commit
54c84edde2
1 changed files with 5 additions and 4 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue