mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-07 21:46:10 +02:00
Adding a secondary HID interface that emulates a keyboard.
With it, an app can send a password directly to the host, like it is typed by user. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -205,7 +205,7 @@ void card_exit() {
|
||||
led_set_blink(BLINK_SUSPENDED);
|
||||
card_locked_itf = ITF_TOTAL;
|
||||
}
|
||||
|
||||
extern void hid_task();
|
||||
void usb_task() {
|
||||
bool mounted = false;
|
||||
for (uint8_t itf = 0; itf < ITF_TOTAL; itf++) {
|
||||
@@ -265,6 +265,7 @@ void usb_task() {
|
||||
}
|
||||
}
|
||||
}
|
||||
hid_task();
|
||||
}
|
||||
|
||||
void timeout_stop() {
|
||||
|
||||
Reference in New Issue
Block a user