Merge pull request #15383 from hallard/patch-1

fix STM I2C compiler inline issue
latest
Martin Kojtal 2023-02-23 09:11:00 +00:00 committed by GitHub
commit be0de13a67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -893,7 +893,7 @@ int i2c_byte_write(i2c_t *obj, int data)
* Return whether the given state is a state where we can start a new I2C transaction with the
* STM32 HAL.
*/
inline bool i2c_is_ready_for_transaction_start(stm_i2c_state state)
bool i2c_is_ready_for_transaction_start(stm_i2c_state state)
{
// Note: We can safely send a transaction start in the middle of any single byte operation; this creates a
// repeated start.