We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d0e7c9 commit 211045fCopy full SHA for 211045f
hardware/arduino/esp8266/cores/esp8266/i2c.cpp
@@ -132,7 +132,6 @@ void i2c_set_ack(int ack)
132
133
int i2c_get_ack()
134
{
135
- i2c_wait();
136
i2c_set_scl(1);
137
i2c_wait();
138
int result = i2c_get_sda();
@@ -153,9 +152,7 @@ uint8_t i2c_read(void)
153
152
154
result <<= 1;
155
result |= i2c_get_sda();
156
- i2c_wait(); // <- remove
157
i2c_set_scl(0);
158
159
}
160
return result;
161
@@ -170,8 +167,8 @@ void i2c_write(uint8_t val)
170
167
171
168
172
169
173
174
+ i2c_wait();
175
i2c_set_sda(1);
176
177
0 commit comments