diff options
Diffstat (limited to 'keyboards/ergodox_ez/matrix.c')
| -rw-r--r-- | keyboards/ergodox_ez/matrix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/keyboards/ergodox_ez/matrix.c b/keyboards/ergodox_ez/matrix.c index e10171133..2aad99781 100644 --- a/keyboards/ergodox_ez/matrix.c +++ b/keyboards/ergodox_ez/matrix.c | |||
| @@ -34,7 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 34 | #include "util.h" | 34 | #include "util.h" |
| 35 | #include "matrix.h" | 35 | #include "matrix.h" |
| 36 | #include QMK_KEYBOARD_H | 36 | #include QMK_KEYBOARD_H |
| 37 | #include "i2cmaster.h" | ||
| 38 | #ifdef DEBUG_MATRIX_SCAN_RATE | 37 | #ifdef DEBUG_MATRIX_SCAN_RATE |
| 39 | #include "timer.h" | 38 | #include "timer.h" |
| 40 | #endif | 39 | #endif |
| @@ -297,7 +296,7 @@ static matrix_row_t read_cols(uint8_t row) | |||
| 297 | mcp23018_status = i2c_start(I2C_ADDR_WRITE); if (mcp23018_status) goto out; | 296 | mcp23018_status = i2c_start(I2C_ADDR_WRITE); if (mcp23018_status) goto out; |
| 298 | mcp23018_status = i2c_write(GPIOB); if (mcp23018_status) goto out; | 297 | mcp23018_status = i2c_write(GPIOB); if (mcp23018_status) goto out; |
| 299 | mcp23018_status = i2c_start(I2C_ADDR_READ); if (mcp23018_status) goto out; | 298 | mcp23018_status = i2c_start(I2C_ADDR_READ); if (mcp23018_status) goto out; |
| 300 | data = i2c_readNak(); | 299 | data = i2c_read_nack(); |
| 301 | data = ~data; | 300 | data = ~data; |
| 302 | out: | 301 | out: |
| 303 | i2c_stop(); | 302 | i2c_stop(); |
