mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-31 17:31:18 +01:00
sys/shell: update sc_i2c_scan to new I2C API
This commit is contained in:
parent
d00141b1d4
commit
818c127513
@ -59,10 +59,7 @@ int _i2c_scan(int argc, char **argv)
|
||||
}
|
||||
|
||||
printf("Scanning I2C device %s...\n", argv[1]);
|
||||
if (i2c_acquire(dev)){
|
||||
puts("Failed to acquire I2C device");
|
||||
return -1;
|
||||
}
|
||||
i2c_acquire(dev);
|
||||
|
||||
puts(
|
||||
"addr not ack'ed = \"-\", addr ack'ed = \"X\", addr reserved = \"R\", error = \"E\"\n"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user