From 3a515bec15fb687ced8effbd749ba9fcdfe4732b Mon Sep 17 00:00:00 2001 From: AndrewCapon Date: Fri, 20 Sep 2024 19:01:29 +0100 Subject: [PATCH] Use GPIO_AF6_I2C4 for alternate function (#628) --- src/per/i2c.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/per/i2c.cpp b/src/per/i2c.cpp index 1a7db87c9..45eb4d230 100644 --- a/src/per/i2c.cpp +++ b/src/per/i2c.cpp @@ -627,7 +627,7 @@ void I2CHandle::Impl::InitPins() GPIO_InitStruct.Alternate = GPIO_AF4_I2C3; break; case I2CHandle::Config::Peripheral::I2C_4: - GPIO_InitStruct.Alternate = GPIO_AF4_I2C4; + GPIO_InitStruct.Alternate = GPIO_AF6_I2C4; break; default: break; }