diff options
Diffstat (limited to 'keyboards/dc01')
-rw-r--r-- | keyboards/dc01/left/matrix.c | 2 | ||||
-rw-r--r-- | keyboards/dc01/right/matrix.c | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/keyboards/dc01/left/matrix.c b/keyboards/dc01/left/matrix.c index fd21d4333b..39e5be5a1d 100644 --- a/keyboards/dc01/left/matrix.c +++ b/keyboards/dc01/left/matrix.c @@ -388,7 +388,7 @@ static void unselect_cols(void) // Complete rows from other modules over i2c i2c_status_t i2c_transaction(uint8_t address, uint32_t mask, uint8_t col_offset) { uint8_t data[MATRIX_ROWS + 1]; - i2c_status_t status = i2c_readReg(address, 0x01, data, (MATRIX_ROWS + 1), 5); + i2c_status_t status = i2c_read_register(address, 0x01, data, (MATRIX_ROWS + 1), 5); for (uint8_t i = 0; i < (MATRIX_ROWS) && status >= 0; i++) { //assemble slave matrix in main matrix matrix[i] &= mask; //mask bits to keep diff --git a/keyboards/dc01/right/matrix.c b/keyboards/dc01/right/matrix.c index 04a6d03804..f9b6738145 100644 --- a/keyboards/dc01/right/matrix.c +++ b/keyboards/dc01/right/matrix.c @@ -15,8 +15,6 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ -#include <stdint.h> -#include <stdbool.h> #if defined(__AVR__) #include <avr/io.h> #include <avr/wdt.h> @@ -31,7 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "timer.h" #include "i2c_slave.h" #include "lufa.h" -#include "quantum.h" #define SLAVE_I2C_ADDRESS 0x32 |