Skip to content

Commit

Permalink
Update usb keyboard hid based on #333
Browse files Browse the repository at this point in the history
  • Loading branch information
brghena authored and bradjc committed Jul 25, 2023
1 parent 602a736 commit a23ff1d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions examples/tutorials/hotp/hotp_complete/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,8 +338,7 @@ static void get_next_code(int slot_num) {
}

// Write the value to the USB keyboard.
uint8_t keyboard_buffer[64]; // TODO: grab PR #333 once merged to remove this unnecessary buffer
ret = usb_keyboard_hid_send_string_sync(keyboard_buffer, hotp_format_buffer, len);
ret = usb_keyboard_hid_send_string_sync(hotp_format_buffer, len);
if (ret < 0) {
printf("ERROR sending string with USB keyboard HID: %i\r\n", ret);
} else {
Expand Down
3 changes: 1 addition & 2 deletions examples/tutorials/hotp/hotp_milestone_one/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ static void get_next_code(void) {
}

// Write the value to the USB keyboard.
uint8_t keyboard_buffer[64]; // TODO: grab PR #333 once merged to remove this unnecessary buffer
int ret = usb_keyboard_hid_send_string_sync(keyboard_buffer, hotp_format_buffer, len);
int ret = usb_keyboard_hid_send_string_sync(hotp_format_buffer, len);
if (ret < 0) {
printf("ERROR sending string with USB keyboard HID: %i\r\n", ret);
} else {
Expand Down
3 changes: 1 addition & 2 deletions examples/tutorials/hotp/hotp_milestone_two/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,7 @@ static void get_next_code(void) {
}

// Write the value to the USB keyboard.
uint8_t keyboard_buffer[64]; // TODO: grab PR #333 once merged to remove this unnecessary buffer
ret = usb_keyboard_hid_send_string_sync(keyboard_buffer, hotp_format_buffer, len);
ret = usb_keyboard_hid_send_string_sync(hotp_format_buffer, len);
if (ret < 0) {
printf("ERROR sending string with USB keyboard HID: %i\r\n", ret);
} else {
Expand Down
3 changes: 1 addition & 2 deletions examples/tutorials/hotp/hotp_starter/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,7 @@ static void get_next_code(void) {
}

// Write the value to the USB keyboard.
uint8_t keyboard_buffer[64]; // TODO: grab PR #333 once merged to remove this unnecessary buffer
int ret = usb_keyboard_hid_send_string_sync(keyboard_buffer, hotp_format_buffer, len);
int ret = usb_keyboard_hid_send_string_sync(hotp_format_buffer, len);
if (ret < 0) {
printf("ERROR sending string with USB keyboard HID: %i\r\n", ret);
} else {
Expand Down

0 comments on commit a23ff1d

Please sign in to comment.