diff --git a/keyboard/kimera/kimera.c b/keyboard/kimera/kimera.c index 7318ab9a..d4987ade 100644 --- a/keyboard/kimera/kimera.c +++ b/keyboard/kimera/kimera.c @@ -28,7 +28,8 @@ along with this program. If not, see . #include "kimera.h" #include "debug.h" -#define SCL_CLOCK 400000L +#define SCL_CLOCK 400000L +#define SCL_DURATION (1000000L/SCL_CLOCK)/2 extern uint8_t i2c_force_stop; uint8_t row_mapping[PX_COUNT] = { @@ -296,18 +297,21 @@ ISR(WDT_vect) { dprintf("i2c timeout\n"); + /* let slave to release SDA */ + TWCR = 0; + DDRD |= (1<