From 98697427a364d6b26e83373fc59b935c6ea54dfd Mon Sep 17 00:00:00 2001 From: Neil McKechnie Date: Fri, 10 Feb 2023 18:21:06 +0000 Subject: [PATCH] Update I2CManager_SAMD.h Fix compile errors following other changes --- I2CManager_SAMD.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/I2CManager_SAMD.h b/I2CManager_SAMD.h index f763e3c..76774a9 100644 --- a/I2CManager_SAMD.h +++ b/I2CManager_SAMD.h @@ -38,7 +38,7 @@ ***************************************************************************/ #if defined(I2C_USE_INTERRUPTS) && defined(ARDUINO_SAMD_ZERO) void SERCOM3_Handler() { - I2CManagerClass::handleInterrupt(); + I2CManager.handleInterrupt(); } #endif @@ -166,11 +166,11 @@ void I2CManagerClass::I2C_sendStart() { if (operation == OPERATION_READ || ((operation == OPERATION_REQUEST) && !bytesToSend)) { // Send start and address with read flag (1) or'd in - s->I2CM.ADDR.bit.ADDR = (currentRequest->i2cAddress << 1) | 1; + s->I2CM.ADDR.bit.ADDR = (deviceAddress << 1) | 1; } else { // Send start and address with write flag (0) or'd in - s->I2CM.ADDR.bit.ADDR = (currentRequest->i2cAddress << 1ul) | 0; + s->I2CM.ADDR.bit.ADDR = (deviceAddress << 1ul) | 0; } }