Skip to content

Commit cb05c07

Browse files
committed
Minor bug fixes to autokey.py.
1 parent 157235d commit cb05c07

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/autokey.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _buffered_mode(port: str = SUPERKEY_DEFAULT_PORT,
7171
line = input('> ')
7272

7373
# Check for special commands
74-
if line == ':q' or line == ':quit':
74+
if line == ':q' or line == ':quit' or line == ':exit':
7575
# Exit program
7676
break
7777

@@ -108,10 +108,10 @@ def _buffered_mode(port: str = SUPERKEY_DEFAULT_PORT,
108108
intf.set_buzzer_enabled(True)
109109
continue
110110

111-
elif line[:12] == ':buzzer frequency':
111+
elif line[:18] == ':buzzer frequency ':
112112
# Set buzzer frequency
113113
try:
114-
intf.set_buzzer_frequency(int(line[12:]))
114+
intf.set_buzzer_frequency(int(line[18:]))
115115
except ValueError:
116116
print('Invalid frequency?')
117117
continue

0 commit comments

Comments
 (0)