fixed swap -X and -Y bug

pull/120/head
alanbjohnston 5 years ago committed by GitHub
parent ea628fedaf
commit 0b885c76b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -318,8 +318,9 @@ int main(int argc, char * argv[]) {
map[BUS] = BAT; map[BUS] = BAT;
snprintf(busStr, 10, "%d %d", test_i2c_bus(1), test_i2c_bus(0)); snprintf(busStr, 10, "%d %d", test_i2c_bus(1), test_i2c_bus(0));
} else if (vB5) { } else if (vB5) {
map[MINUS_X] = PLUS_Z; map[MINUS_X] = MINUS_Y;
map[PLUS_Z] = MINUS_X; map[PLUS_Z] = MINUS_X;
map[MINUS_Y] = PLUS_Z;
if (access("/dev/i2c-11", W_OK | R_OK) >= 0) { // Test if I2C Bus 11 is present if (access("/dev/i2c-11", W_OK | R_OK) >= 0) { // Test if I2C Bus 11 is present
printf("/dev/i2c-11 is present\n\n"); printf("/dev/i2c-11 is present\n\n");

Loading…
Cancel
Save

Powered by TurnKey Linux.