diff options
-rw-r--r-- | keyboards/ergodox_ez/matrix.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/keyboards/ergodox_ez/matrix.c b/keyboards/ergodox_ez/matrix.c index f0550e9b8..e10171133 100644 --- a/keyboards/ergodox_ez/matrix.c +++ b/keyboards/ergodox_ez/matrix.c | |||
@@ -326,17 +326,9 @@ static matrix_row_t read_cols(uint8_t row) | |||
326 | */ | 326 | */ |
327 | static void unselect_rows(void) | 327 | static void unselect_rows(void) |
328 | { | 328 | { |
329 | // unselect on mcp23018 | 329 | // no need to unselect on mcp23018, because the select step sets all |
330 | if (mcp23018_status) { // if there was an error | 330 | // the other row bits high, and it's not changing to a different |
331 | // do nothing | 331 | // direction |
332 | } else { | ||
333 | // set all rows hi-Z : 1 | ||
334 | mcp23018_status = i2c_start(I2C_ADDR_WRITE); if (mcp23018_status) goto out; | ||
335 | mcp23018_status = i2c_write(GPIOA); if (mcp23018_status) goto out; | ||
336 | mcp23018_status = i2c_write(0xFF); if (mcp23018_status) goto out; | ||
337 | out: | ||
338 | i2c_stop(); | ||
339 | } | ||
340 | 332 | ||
341 | // unselect on teensy | 333 | // unselect on teensy |
342 | // Hi-Z(DDR:0, PORT:0) to unselect | 334 | // Hi-Z(DDR:0, PORT:0) to unselect |