From aea4a01d81618770177204d6a22605ca14dff45d Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Wed, 12 Jan 2022 20:03:58 +1100 Subject: [PATCH] Update I2C_Wrapper.cpp --- source/Core/BSP/Miniware/I2C_Wrapper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/Core/BSP/Miniware/I2C_Wrapper.cpp b/source/Core/BSP/Miniware/I2C_Wrapper.cpp index c138c1a6..1038e41d 100644 --- a/source/Core/BSP/Miniware/I2C_Wrapper.cpp +++ b/source/Core/BSP/Miniware/I2C_Wrapper.cpp @@ -11,10 +11,10 @@ SemaphoreHandle_t FRToSI2C::I2CSemaphore = nullptr; StaticSemaphore_t FRToSI2C::xSemaphoreBuffer; void FRToSI2C::CpltCallback() { - hi2c1.State = HAL_I2C_STATE_READY; // Force state reset (even if tx error) - if (I2CSemaphore) { - xSemaphoreGiveFromISR(I2CSemaphore, NULL); - } + // hi2c1.State = HAL_I2C_STATE_READY; // Force state reset (even if tx error) + // if (I2CSemaphore) { + // xSemaphoreGiveFromISR(I2CSemaphore, NULL); + // } } bool FRToSI2C::Mem_Read(uint16_t DevAddress, uint16_t MemAddress, uint8_t *pData, uint16_t Size) {