put -1 for bad i2c bus

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

@ -107,8 +107,9 @@ int main(int argc, char *argv[]) {
if (error != 0) if (error != 0)
{ {
printf("ERROR: %s bus has a problem \n Check I2C wiring and pullup resistors \n", "3"); printf("ERROR: %s bus has a problem \n Check I2C wiring and pullup resistors \n", "3");
// return (data); strcpy(busStr,"1 -1");
} }
else
strcpy(busStr,"1 3"); strcpy(busStr,"1 3");
} }
} }

Loading…
Cancel
Save

Powered by TurnKey Linux.