added i2c bus status debug printf

pull/72/head
alanbjohnston 5 years ago committed by GitHub
parent a82fd8f5be
commit cc2a1fbfe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -404,7 +404,11 @@ else
i2c_bus0 = (test_i2c_bus(0) != -1) ? ON: OFF;
i2c_bus1 = (test_i2c_bus(1) != -1) ? ON: OFF;
i2c_bus3 = (test_i2c_bus(3) != -1) ? ON: OFF;
i2c_bus3 = (test_i2c_bus(3) != -1) ? ON: OFF;
#ifdef DEBUG_LOGGING
printf("INFO: I2C bus status 0: %d 1: %d 3: %d \n",i2c_bus0, i2c_bus1, i2c_bus3);
#endif
if ((i2c_bus1 == OFF) && (i2c_bus3 == OFF))
sim_mode = TRUE;

Loading…
Cancel
Save

Powered by TurnKey Linux.