Closed tko closed 3 years ago
I see what you mean. If the second parameter is 0 or 1 it assumes it's the optional port, but it then fails to check that the address is missing.
The workaround is to change the scan program to explicitly give the port number:
(dotimes (p 127) (with-i2c (str 0 p) ...))
Thanks for reporting this.
Seems the
0
is invalid argument, works with1
, which is rather unfortunate as the examples do(dotimes (p 127) (with-i2c (str p) ...))
which then panics on the first round.