Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removing mathematical operations from delay
  • Loading branch information
xpalaa00 authored Nov 26, 2021
commit 189b931e658e1f223911b45455fdbcf06b86fad8
4 changes: 2 additions & 2 deletions cores/esp8266/core_esp8266_si2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ bool Twi::write_start(void)
}
busywait(twi_dcount);
SDA_LOW(twi_sda);
busywait(twi_dcount / 2);
busywait(twi_dcount);
SCL_LOW(twi_scl);
busywait((twi_dcount / 2) + (twi_dcount % 2));
busywait(twi_dcount);
return true;
}

Expand Down