Skip to content

Commit 2309a1c

Browse files
Tech-TXdevyte
authored andcommitted
removed TWI_CLOCK_STRETCH_MULTIPLIER (#6867)
1 parent 074a801 commit 2309a1c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

cores/esp8266/core_esp8266_si2c.cpp

+1-8
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,6 @@ static Twi twi;
158158
#define FCPU80 80000000L
159159
#endif
160160

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-
168161
void Twi::setClock(unsigned int freq)
169162
{
170163
preferred_si2c_clock = freq;
@@ -231,7 +224,7 @@ void Twi::setClock(unsigned int freq)
231224

232225
void Twi::setClockStretchLimit(uint32_t limit)
233226
{
234-
twi_clockStretchLimit = limit * TWI_CLOCK_STRETCH_MULTIPLIER;
227+
twi_clockStretchLimit = limit;
235228
}
236229

237230

0 commit comments

Comments
 (0)