Fix preparing rdata pointer with emulated HID.

Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
Pol Henarejos 2023-03-03 00:05:05 +01:00
parent b96e853e6d
commit 8f8134efbc
No known key found for this signature in database
GPG key ID: C0095B7870A4CCD3

View file

@ -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;
}