8000
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 074a801 commit 2309a1cCopy full SHA for 2309a1c
cores/esp8266/core_esp8266_si2c.cpp
@@ -158,13 +158,6 @@ static Twi twi;
158
#define FCPU80 80000000L
159
#endif
160
161
-#if F_CPU == FCPU80
162
-#define TWI_CLOCK_STRETCH_MULTIPLIER 3
163
-#else
164
-#define TWI_CLOCK_STRETCH_MULTIPLIER 6
165
-#endif
166
-
167
168
void Twi::setClock(unsigned int freq)
169
{
170
preferred_si2c_clock = freq;
@@ -231,7 +224,7 @@ void Twi::setClock(unsigned int freq)
231
224
232
225
void Twi::setClockStretchLimit(uint32_t limit)
233
226
234
- twi_clockStretchLimit = limit * TWI_CLOCK_STRETCH_MULTIPLIER;
227
+ twi_clockStretchLimit = limit;
235
228
}
236
229
237
230
0 commit comments