Skip to content

Commit

Permalink
Use GPIO_AF6_I2C4 for alternate function (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewCapon authored Sep 20, 2024
1 parent 6949061 commit 3a515be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/per/i2c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3a515be

Please sign in to comment.