Skip to content

Commit 849279a

Browse files
fivdikilograham
authored andcommitted
bus_scan: use i2c_default rather than i2c0
1 parent 1813f81 commit 849279a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

i2c/bus_scan/bus_scan.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ int main() {
6666
if (reserved_addr(addr))
6767
ret = PICO_ERROR_GENERIC;
6868
else
69-
ret = i2c_read_blocking(i2c0, addr, &rxdata, 1, false);
69+
ret = i2c_read_blocking(i2c_default, addr, &rxdata, 1, false);
7070

7171
printf(ret < 0 ? "." : "@");
7272
printf(addr % 16 == 15 ? "\n" : " ");

0 commit comments

Comments
 (0)