From 73a7d3e0ca02830cdf780f7fb09ed0c84edf7350 Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Tue, 7 Feb 2023 23:16:37 +0000 Subject: [PATCH] Update I2CManager_AVR.h Bug fix in native driver MUX code. --- I2CManager_AVR.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/I2CManager_AVR.h b/I2CManager_AVR.h index e5e1863..7613132 100644 --- a/I2CManager_AVR.h +++ b/I2CManager_AVR.h @@ -22,6 +22,7 @@ #include #include "I2CManager.h" +#include "I2CManager_NonBlocking.h" // to satisfy intellisense #include #include @@ -139,9 +140,7 @@ void I2CManagerClass::I2C_handleInterrupt() { #if defined(I2C_EXTENDED_ADDRESS) // First process the MUX state machine. - // This does not need to be entered during passthru phase unless the - // application's send and receive have both completed. - if (muxPhase > MuxPhase_OFF && !(muxPhase==MuxPhase_PASSTHRU && (bytesToSend || bytesToReceive))) { + if (muxPhase > MuxPhase_OFF) { switch (twsr) { case TWI_MTX_ADR_ACK: // SLA+W has been transmitted and ACK received if (muxPhase == MuxPhase_PROLOG) {