From ea1f6adc8e47e2408fda07bbec595daeb1d3f402 Mon Sep 17 00:00:00 2001 From: Gergő J. Miklós Date: Sun, 22 Nov 2020 04:04:03 +0100 Subject: ... --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index af37eb3..e4bd464 100644 --- a/src/main.c +++ b/src/main.c @@ -173,7 +173,7 @@ int main( int argc, char *argv[] ){ addr = (long)strtol(argv[4], NULL, 0); //# strtol() is working with hex-string correctly - if (ioctl(devicef, I2C_SLAVE_FORCE, addr) < 0){ //# Seeking/Opening the device on the Bus + if (ioctl(devicef, I2C_SLAVE, addr) < 0){ //I2C_SLAVE_FORCE //# Seeking/Opening the device on the Bus //printf("\n\tCan't open i2c DEVICE, errno: %d\n\n",errno); fprintf (stderr, "\n\tCan't open i2c DEVICE! [ERR: %d, MSG: %s] at %s, line %d. \n", errno, strerror(errno), __FILE__, __LINE__); close(devicef); -- cgit v1.2.3