diff options
author | Jack Humbert <jack.humb@gmail.com> | 2018-05-15 22:30:58 -0400 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-05-15 22:30:58 -0400 |
commit | 682555faac8a67deff5688b956165cd1c39389cb (patch) | |
tree | 00a0991aed23eee4e2ad3bbcfab202476c7c2676 /keyboards/ergodox_ez/matrix.c | |
parent | 6dc215cd679d54ca2ab985c21c9bb299aca74b01 (diff) | |
download | qmk_firmware-682555faac8a67deff5688b956165cd1c39389cb.tar.gz |
i2c fix
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/>. #include "util.h" #include "matrix.h" #include QMK_KEYBOARD_H -#include "i2cmaster.h" #ifdef DEBUG_MATRIX_SCAN_RATE #include "timer.h" #endif @@ -297,7 +296,7 @@ static matrix_row_t read_cols(uint8_t row) mcp23018_status = i2c_start(I2C_ADDR_WRITE); if (mcp23018_status) goto out; mcp23018_status = i2c_write(GPIOB); if (mcp23018_status) goto out; mcp23018_status = i2c_start(I2C_ADDR_READ); if (mcp23018_status) goto out; - data = i2c_readNak(); + data = i2c_read_nack(); data = ~data; out: i2c_stop(); |