Fix preparing rdata pointer with emulated HID.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
b96e853e6d
commit
8f8134efbc
1 changed files with 2 additions and 0 deletions
|
|
@ -134,6 +134,8 @@ int emul_init(char *host, uint16_t port) {
|
|||
|
||||
uint8_t *driver_prepare_response_emul(uint8_t itf) {
|
||||
apdu.rdata = usb_get_tx(itf);
|
||||
if (itf == ITF_HID)
|
||||
apdu.rdata += 7;
|
||||
return apdu.rdata;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue