From 7e32e928457f22e7e8427e5af3f4e557981dae9c Mon Sep 17 00:00:00 2001 From: KLASSENTS Date: Mon, 26 May 2025 13:30:26 +0700 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=BD=D0=B0=D0=B7=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D1=8D=D0=BA=D0=B7=D0=B5=D0=BC=D0=BF=D0=BB=D1=8F=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=B2=20=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=82=D1=87=D0=B8=D0=BA=D0=B5=20=D0=BF=D1=80=D0=B5=D1=80=D1=8B?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libraries/Wire/src/Wire.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/Wire/src/Wire.cpp b/libraries/Wire/src/Wire.cpp index 6444402..363bc6a 100644 --- a/libraries/Wire/src/Wire.cpp +++ b/libraries/Wire/src/Wire.cpp @@ -287,10 +287,10 @@ void TwoWire::onRequest( void (*function)(void) ) extern "C" void __attribute__((optimize("O3"))) wire_interrupt_handler(uint8_t num) { if (num == 1) - twi_interruptHandler(Wire.getHandler()); + twi_interruptHandler(Wire1.getHandler()); #if I2C_COMMON_QTY>1 else if (num == 0) - twi_interruptHandler(Wire1.getHandler()); + twi_interruptHandler(Wire0.getHandler()); #endif }