Skip to content

Commit 0fa3882

Browse files
committed
Update the comment about the delay needed for ecc
1 parent 6d97d57 commit 0fa3882

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/hal_i2c_driver.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,7 @@ ATCA_STATUS hal_i2c_receive(ATCAIface iface,
7070
uint8_t *rxdata,
7171
uint16_t *rxlength) {
7272

73-
// TODO: Somehow, the TWI driver gets into an infinite loop if we don't
74-
// delay some here. This might be due to two operations happening quickly
75-
// after each other. Two reads for example.
76-
// This is really bad though :/
73+
// Need some delay here for the Wire driver to keep up
7774
atca_delay_ms(100);
7875

7976
*rxlength = WIRE.requestFrom(word_address, (size_t)(*rxlength));

0 commit comments

Comments
 (0)