X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=keyboards%2Flets_split%2Fi2c.c;h=084c890c405fa6f7ebfc1be7a699e3d120e5c482;hb=7a433a7f3deea8e4d04a469e31e8b47047eacc99;hp=c72789403e558eb7288b1852d6a96ff47842910f;hpb=009ab77d3e26bd348e45a9a8102b2737c9367979;p=qmk_firmware.git diff --git a/keyboards/lets_split/i2c.c b/keyboards/lets_split/i2c.c index c72789403..084c890c4 100644 --- a/keyboards/lets_split/i2c.c +++ b/keyboards/lets_split/i2c.c @@ -6,6 +6,8 @@ #include #include "i2c.h" +#ifdef USE_I2C + // Limits the amount of we wait for any one i2c transaction. // Since were running SCL line 100kHz (=> 10μs/bit), and each transactions is // 9 bits, a single transaction will take around 90μs to complete. @@ -157,3 +159,4 @@ ISR(TWI_vect) { // Reset everything, so we are ready for the next TWI interrupt TWCR |= (1<