Fixed missing / in /dev/i2c-0

pull/24/head
alanbjohnston 7 years ago committed by GitHub
parent c8db1e4f62
commit 568bab80e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -120,7 +120,7 @@ int main(void) {
fprintf(stderr,"tempSensor: %d \n",tempSensor); fprintf(stderr,"tempSensor: %d \n",tempSensor);
#endif #endif
int arduinoI2C = access("dev/i2c-0", W_OK | R_OK); int arduinoI2C = access("/dev/i2c-0", W_OK | R_OK);
if (arduinoI2C < 0) if (arduinoI2C < 0)
{ {
fprintf(stderr,"ERROR: /dev/i2c-0 bus not present\n"); fprintf(stderr,"ERROR: /dev/i2c-0 bus not present\n");

Loading…
Cancel
Save

Powered by TurnKey Linux.