billroy / bitlash

Bitlash: a programmable command shell for arduino
http://bitlash.net
MIT License
341 stars 73 forks source link

No need to wait after Wire.requestFrom(). #55

Open Koepel opened 6 years ago

Koepel commented 6 years ago

These lines in the file "bitlash/src/eeprom.c" can be removed.

while(Wire.available() == 0)
{}

There is no need to wait after Wire.requestFrom(). When the Wire.requestFrom() returns, the I2C transaction has completely finished.