diff --git a/examples/tutorials/hotp/hotp_complete/main.c b/examples/tutorials/hotp/hotp_complete/main.c index d5da51d43..1b6e5b728 100644 --- a/examples/tutorials/hotp/hotp_complete/main.c +++ b/examples/tutorials/hotp/hotp_complete/main.c @@ -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 { diff --git a/examples/tutorials/hotp/hotp_milestone_one/main.c b/examples/tutorials/hotp/hotp_milestone_one/main.c index 269b9ca0c..8bc214835 100644 --- a/examples/tutorials/hotp/hotp_milestone_one/main.c +++ b/examples/tutorials/hotp/hotp_milestone_one/main.c @@ -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 { diff --git a/examples/tutorials/hotp/hotp_milestone_two/main.c b/examples/tutorials/hotp/hotp_milestone_two/main.c index b0cce5efe..ea2dcf6c0 100644 --- a/examples/tutorials/hotp/hotp_milestone_two/main.c +++ b/examples/tutorials/hotp/hotp_milestone_two/main.c @@ -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 { diff --git a/examples/tutorials/hotp/hotp_starter/main.c b/examples/tutorials/hotp/hotp_starter/main.c index 883d987f8..a535de712 100644 --- a/examples/tutorials/hotp/hotp_starter/main.c +++ b/examples/tutorials/hotp/hotp_starter/main.c @@ -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 {