bus_scan: use i2c_default rather than i2c0

This commit is contained in:
fivdi 2021-03-22 21:04:53 +01:00 committed by Graham Sanderson
parent 1813f81b12
commit 849279a8ce

View File

@ -66,7 +66,7 @@ int main() {
if (reserved_addr(addr))
ret = PICO_ERROR_GENERIC;
else
ret = i2c_read_blocking(i2c0, addr, &rxdata, 1, false);
ret = i2c_read_blocking(i2c_default, addr, &rxdata, 1, false);
printf(ret < 0 ? "." : "@");
printf(addr % 16 == 15 ? "\n" : " ");