Skip to content

Commit

Permalink
removed TWI_CLOCK_STRETCH_MULTIPLIER (#6867)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tech-TX authored and devyte committed Dec 3, 2019
1 parent 074a801 commit 2309a1c
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions cores/esp8266/core_esp8266_si2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,6 @@ static Twi twi;
#define FCPU80 80000000L
#endif

#if F_CPU == FCPU80
#define TWI_CLOCK_STRETCH_MULTIPLIER 3
#else
#define TWI_CLOCK_STRETCH_MULTIPLIER 6
#endif


void Twi::setClock(unsigned int freq)
{
preferred_si2c_clock = freq;
Expand Down Expand Up @@ -231,7 +224,7 @@ void Twi::setClock(unsigned int freq)

void Twi::setClockStretchLimit(uint32_t limit)
{
twi_clockStretchLimit = limit * TWI_CLOCK_STRETCH_MULTIPLIER;
twi_clockStretchLimit = limit;
}


Expand Down

0 comments on commit 2309a1c

Please sign in to comment.