diff --git a/keyboards/zsa/moonlander/matrix.c b/keyboards/zsa/moonlander/matrix.c index 84c3be7492..13610a6104 100644 --- a/keyboards/zsa/moonlander/matrix.c +++ b/keyboards/zsa/moonlander/matrix.c @@ -19,6 +19,19 @@ #include "i2c_master.h" #include "moonlander.h" #include "mcp23018.h" +#ifndef ORYX_CONFIGURATOR +// TODO: move this to a zsa community module once we adopt qmk25 100%. +#include "i2c_master.h" + +#ifndef I2C_DRIVER +# define I2C_DRIVER I2CD1 +#endif +void i2c_reset(void) { + i2cStop(&I2C_DRIVER); + chThdSleepMilliseconds(10); + i2c_init(); +} +#endif #pragma GCC push_options #pragma GCC optimize("-O3") diff --git a/keyboards/zsa/voyager/matrix.c b/keyboards/zsa/voyager/matrix.c index 068e086427..88f33947b0 100644 --- a/keyboards/zsa/voyager/matrix.c +++ b/keyboards/zsa/voyager/matrix.c @@ -5,7 +5,19 @@ #include #include "voyager.h" #include "mcp23018.h" +#ifndef ORYX_CONFIGURATOR +// TODO: move this to a zsa community module once we adopt qmk25 100%. +#include "i2c_master.h" +#ifndef I2C_DRIVER +# define I2C_DRIVER I2CD1 +#endif +void i2c_reset(void) { + i2cStop(&I2C_DRIVER); + chThdSleepMilliseconds(10); + i2c_init(); +} +#endif #pragma GCC push_options #pragma GCC optimize("-O3")