summaryrefslogtreecommitdiff
path: root/keyboard/ergodox_ez/matrix.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboard/ergodox_ez/matrix.c')
-rw-r--r--keyboard/ergodox_ez/matrix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboard/ergodox_ez/matrix.c b/keyboard/ergodox_ez/matrix.c
index 09380d3083..3e1d69444b 100644
--- a/keyboard/ergodox_ez/matrix.c
+++ b/keyboard/ergodox_ez/matrix.c
@@ -277,7 +277,7 @@ static void unselect_rows(void)
mcp23018_status = i2c_start(I2C_ADDR_WRITE); if (mcp23018_status) goto out;
mcp23018_status = i2c_write(GPIOA); if (mcp23018_status) goto out;
mcp23018_status = i2c_write( 0xFF
- & ~(ergodox_left_led_3<<LEFT_LED_3_SHIFT)
+ & ~(0<<7)
); if (mcp23018_status) goto out;
out:
i2c_stop();
@@ -305,7 +305,7 @@ static void select_row(uint8_t row)
mcp23018_status = i2c_start(I2C_ADDR_WRITE); if (mcp23018_status) goto out;
mcp23018_status = i2c_write(GPIOA); if (mcp23018_status) goto out;
mcp23018_status = i2c_write( 0xFF & ~(1<<row)
- & ~(ergodox_left_led_3<<LEFT_LED_3_SHIFT)
+ & ~(0<<7)
); if (mcp23018_status) goto out;
out:
i2c_stop();