Commit 9b927b2
authored
Fix I2C handling of multiple Wire.begin() at libmaple level
Just skip the i2c_master_enable() code if the PE bit says it's already enabled
This solves the problem of ASSERT() hang when Wire.begin() is called by multiple libraries1 parent 91783ae commit 9b927b2
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
179 | | - | |
| 178 | + | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
0 commit comments