mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-06-10 11:59:05 +02:00
Fix preparing rdata pointer with emulated HID.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -134,6 +134,8 @@ int emul_init(char *host, uint16_t port) {
|
|||||||
|
|
||||||
uint8_t *driver_prepare_response_emul(uint8_t itf) {
|
uint8_t *driver_prepare_response_emul(uint8_t itf) {
|
||||||
apdu.rdata = usb_get_tx(itf);
|
apdu.rdata = usb_get_tx(itf);
|
||||||
|
if (itf == ITF_HID)
|
||||||
|
apdu.rdata += 7;
|
||||||
return apdu.rdata;
|
return apdu.rdata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user