diff options
author | Gergő J. Miklós | 2020-11-22 04:04:03 +0100 |
---|---|---|
committer | Gergő J. Miklós | 2020-11-22 04:04:03 +0100 |
commit | ea1f6adc8e47e2408fda07bbec595daeb1d3f402 (patch) | |
tree | d5e22c2993b336caccce38f6c04b45647c28b948 /src/main.c | |
parent | 47bda328c70858c3b61cddf8e1398ce7ab0ff700 (diff) | |
download | i2sensors-master.tar.gz i2sensors-master.zip |
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |