Closed markrages closed 3 years ago
Don't mutate argument, even with odd lengths.
Test case:
import u3 lj = u3.openAllU3().popitem()[1] data = [1] lj.i2c(0x10,data) assert data == [1]
(I see that u6.py and ue9.py have the same problem, but I don't have hardware to test those.)
u6.py
ue9.py
Thanks for catching and fixing. I pulled in the changes and will look into fixing the same issues for the U6 and UE9.
Don't mutate argument, even with odd lengths.
Test case:
(I see that
u6.py
andue9.py
have the same problem, but I don't have hardware to test those.)