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

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