From d8991ce621034ffa5b5ac3f99d17e602a05a16ae Mon Sep 17 00:00:00 2001 From: tmk Date: Sat, 21 May 2022 00:27:03 +0900 Subject: [PATCH] adb: Add wait after listen and talk to make clear between stop bit and next attention --- tmk_core/protocol/adb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tmk_core/protocol/adb.c b/tmk_core/protocol/adb.c index 06cd3cb4..2f7b5139 100644 --- a/tmk_core/protocol/adb.c +++ b/tmk_core/protocol/adb.c @@ -218,6 +218,7 @@ uint8_t adb_host_talk_buf(uint8_t addr, uint8_t reg, uint8_t *buf, uint8_t len) error: sei(); + _delay_us(200); return n/8; } @@ -246,6 +247,7 @@ void adb_host_listen_buf(uint8_t addr, uint8_t reg, uint8_t *buf, uint8_t len) } place_bit0(); // Stopbit(0); sei(); + _delay_us(200); } void adb_host_listen(uint8_t addr, uint8_t reg, uint8_t data_h, uint8_t data_l)