1
0
mirror of https://github.com/whowechina/aic_pico.git synced 2025-02-20 20:41:17 +01:00

Minor reader line timeout fix

This commit is contained in:
whowechina 2024-06-18 10:56:33 +08:00
parent 579c493911
commit 61f9a526a9

View File

@ -470,7 +470,14 @@ void tud_hid_set_report_cb(uint8_t itf, uint8_t report_id,
void tud_cdc_line_state_cb(uint8_t itf, bool dtr, bool rts)
{
DEBUG("\nCDC Line State: %d %d", dtr, rts);
aime_fast_expire();
bana_fast_expire();
if (itf != reader_intf) {
return;
}
DEBUG("\nReader Line State: %d %d", dtr, rts);
if (!dtr) {
aime_fast_expire();
bana_fast_expire();
}
}