Skip to content

Commit

Permalink
fix a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
z4yx committed Oct 18, 2023
1 parent 68e478e commit 815fd19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion interfaces/USB/class/kbdhid/kbdhid.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static uint8_t ascii2keycode(char ch) {
}

static void KBDHID_UserTouchHandle(void) {
int ret, len;
int ret, len = 0;
memset(key_sequence, 0, sizeof(key_sequence));
ret = oath_process_one_touch(key_sequence, sizeof(key_sequence));
if (ret < 0) {
Expand Down

0 comments on commit 815fd19

Please sign in to comment.