From 6239171fb2218d8c29bcea39f8cbe9d5eff1d3eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20G=C3=B6ttgens?= Date: Sat, 26 Oct 2024 15:17:12 +0200 Subject: [PATCH] sheesh --- src/input/peMatrixBase.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/input/peMatrixBase.cpp b/src/input/peMatrixBase.cpp index a7f919209..db96eae22 100644 --- a/src/input/peMatrixBase.cpp +++ b/src/input/peMatrixBase.cpp @@ -6,7 +6,11 @@ extern ScanI2C::DeviceAddress cardkb_found; extern uint8_t kb_model; +#if WIRE_INTERFACES_COUNT == 2 // defined in architecture.h I2CKeyPad keyPad(cardkb_found.address, cardkb_found.port == ScanI2C::WIRE1 ? &Wire1 : &Wire); +#else +I2CKeyPad keyPad(cardkb_found.address, &Wire); +#endif PeMatrixBase::PeMatrixBase(const char *name) : concurrency::OSThread(name) {