fixed error text

pull/57/head
alanbjohnston 5 years ago committed by GitHub
parent f4e1b433db
commit 313c439cde
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1614,12 +1614,12 @@ int test_i2c_bus(int bus)
// printf("%s error: %d \n", &command, error); // printf("%s error: %d \n", &command, error);
if (error != 0) if (error != 0)
{ {
printf("ERROR: %d bus has a problem \n Check I2C wiring and pullup resistors \n", bus); printf("ERROR: %sd bus has a problem \n Check I2C wiring and pullup resistors \n", busDev);
output = -1; output = -1;
} }
} else } else
{ {
printf("ERROR: %d bus has a problem \n Check software to see if enabled \n", bus); printf("ERROR: %s bus has a problem \n Check software to see if I2C enabled \n", busDev);
output = -1; output = -1;
} }
return(output); // return bus number or -1 if there is a problem with the bus return(output); // return bus number or -1 if there is a problem with the bus

Loading…
Cancel
Save

Powered by TurnKey Linux.