Browse Source

Close device file before we exit.

git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5238 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v3.0.2
Jean Delvare 17 years ago
parent
commit
cc723a46f7
  1. 1
      tools/i2cget.c

1
tools/i2cget.c

@ -228,6 +228,7 @@ int main(int argc, char *argv[])
if (pec && ioctl(file, I2C_PEC, 1) < 0) {
fprintf(stderr, "Error: Could not set PEC: %s\n",
strerror(errno));
close(file);
exit(1);
}

Loading…
Cancel
Save