fix issue with bootloader not replying data
This commit is contained in:
parent
a1a79b05fd
commit
98803b7dd0
@ -710,6 +710,7 @@ uint8_t ctaphid_custom_command(int len, CTAP_RESPONSE * ctap_resp, CTAPHID_WRITE
|
|||||||
printf1(TAG_HID,"CTAPHID_BOOT\n");
|
printf1(TAG_HID,"CTAPHID_BOOT\n");
|
||||||
u2f_set_writeback_buffer(ctap_resp);
|
u2f_set_writeback_buffer(ctap_resp);
|
||||||
is_busy = bootloader_bridge(len, ctap_buffer);
|
is_busy = bootloader_bridge(len, ctap_buffer);
|
||||||
|
wb->bcnt = 1 + ctap_resp->length;
|
||||||
|
|
||||||
ctaphid_write(wb, &is_busy, 1);
|
ctaphid_write(wb, &is_busy, 1);
|
||||||
ctaphid_write(wb, ctap_resp->data, ctap_resp->length);
|
ctaphid_write(wb, ctap_resp->data, ctap_resp->length);
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
#define _APP_H_
|
#define _APP_H_
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
#define DEBUG_UART USART1
|
#define DEBUG_UART USART1
|
||||||
|
|
||||||
#ifndef DEBUG_LEVEL
|
#ifndef DEBUG_LEVEL
|
||||||
@ -21,6 +20,7 @@
|
|||||||
#define BOOT_TO_DFU 0
|
#define BOOT_TO_DFU 0
|
||||||
|
|
||||||
|
|
||||||
|
#define SOLO 1
|
||||||
#define IS_BOOTLOADER 1
|
#define IS_BOOTLOADER 1
|
||||||
|
|
||||||
#define ENABLE_U2F_EXTENSIONS
|
#define ENABLE_U2F_EXTENSIONS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user