mirror of
https://github.com/polhenarejos/pico-keys-sdk
synced 2026-05-27 00:25:11 +02:00
Clear otp report before processing.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -110,6 +110,7 @@ uint16_t tud_hid_get_report_cb(uint8_t itf, uint8_t report_id, hid_report_type_t
|
||||
(void) buffer;
|
||||
(void) reqlen;
|
||||
printf("get_report %d %d %d\n", itf, report_id, report_type);
|
||||
memset(buffer, 0, reqlen);
|
||||
DEBUG_PAYLOAD(buffer, reqlen);
|
||||
if (hid_get_report_cb) {
|
||||
hid_get_report_cb(itf, report_id, report_type, buffer, reqlen);
|
||||
|
||||
Reference in New Issue
Block a user