Skip to content

Commit

Permalink
Bugfix: sw doesn't work when config locked, typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiwenmin committed Oct 9, 2019
1 parent a0b9a93 commit 7a85b5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion task_autotext.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void autotext_response_char(char ch) {
}

void autotext_response_char2(char ch) {
_runtime_resp_buffer[1] = MCH_SP;
_runtime_resp_buffer[0] = MCH_SP;
_runtime_resp_buffer[1] = ch;
_runtime_resp_buffer[2] = 0;
autotext_response_str(_runtime_resp_buffer);
Expand Down
2 changes: 1 addition & 1 deletion task_setting.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static void do_wait_command() {
if (!RT_FLAG_SETTING_MODE_ENABLED) return;

for (char ch = rt_morse_decoded_buffer_getch(); ch != 0; ch = rt_morse_decoded_buffer_getch()) {
if (CFG_FLAG_LOCKED && ch != MCH_5) {
if (CFG_FLAG_LOCKED && ch != MCH_5 && ch != MCH_LF) {
autotext_response_char2(MCH_EM);
continue;
}
Expand Down

0 comments on commit 7a85b5d

Please sign in to comment.