From f820dbb04856366a8bc35f2939346b2afd83a361 Mon Sep 17 00:00:00 2001 From: Florian Didron Date: Tue, 27 May 2025 08:42:37 +0700 Subject: [PATCH] h/f: compilation hangs when Oryx code is disabled --- keyboards/zsa/moonlander/matrix.c | 13 +++++++++++++ keyboards/zsa/voyager/matrix.c | 12 ++++++++++++ 2 files changed, 25 insertions(+) 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")