diff options
author | yiancar <yiangosyiangou@cytanet.com.cy> | 2021-02-16 03:36:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-15 20:36:58 -0500 |
commit | 3fed8bced718e24e414c0d5736554d7988235b20 (patch) | |
tree | 51de9da8f0e01109d9e434fae315a94d6930c142 /keyboards/dc01/numpad/matrix.c | |
parent | fa740f81298dc0965970a4dc7b0b67285bd1985c (diff) |
Dc01 fixes (#11843)
* dc01-fixes
* dc01-fixes
* Cleanup and add VIA
* Updated JSONs
* fix
Diffstat (limited to 'keyboards/dc01/numpad/matrix.c')
-rw-r--r-- | keyboards/dc01/numpad/matrix.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/keyboards/dc01/numpad/matrix.c b/keyboards/dc01/numpad/matrix.c index f8b725adc2..a56c338ec9 100644 --- a/keyboards/dc01/numpad/matrix.c +++ b/keyboards/dc01/numpad/matrix.c @@ -32,7 +32,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. #include "i2c_slave.h" #include "lufa.h" -#define SLAVE_I2C_ADDRESS 0x21 +#define SLAVE_I2C_ADDRESS 0x36 /* Set 0 if debouncing isn't needed */ @@ -196,12 +196,10 @@ uint8_t matrix_scan(void) } # endif - if (USB_DeviceState != DEVICE_STATE_Configured){ - i2c_slave_reg[1] = 0x55; - for (uint8_t i = 0; i < MATRIX_ROWS; i++){ - i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c - } - } + i2c_slave_reg[1] = 0x55; + for (uint8_t i = 0; i < MATRIX_ROWS; i++){ + i2c_slave_reg[i+2] = matrix[i]; //send matrix over i2c + } matrix_scan_quantum(); return 1; @@ -396,9 +394,6 @@ static void unselect_cols(void) //this replases tmk code void matrix_setup(void){ - - if (USB_DeviceState != DEVICE_STATE_Configured){ - i2c_slave_init(SLAVE_I2C_ADDRESS); //setup address of slave i2c - sei(); //enable interupts - } + i2c_slave_init(SLAVE_I2C_ADDRESS); //setup address of slave i2c + sei(); //enable interupts }
\ No newline at end of file |