sajattack / bitbang-hal

Implements embedded-hal traits by bitbanging
MIT License
40 stars 10 forks source link

i2c: fix introduced during switch to digital::v2 #6

Closed geomatsi closed 5 years ago

geomatsi commented 5 years ago

Hi @sajattack Arrrghhh... Shame upon my head... Last minute refactoring in my previous commit broke i2c. The issue is now fixed and this time tested properly using kxcj9 accelerometer driver. Second commit in PR bumps version.

Regards, Sergey

Commit message: Commit 30f51e73e0c2d85 replaced embedded_hal digital::v1 gpio traits by their v2 version. However in the case of i2c module additional refactoring led to multiple scl->sda substitutions.