Skip to content

Commit be0de13

Browse files
authored
Merge pull request #15383 from hallard/patch-1
fix STM I2C compiler inline issue
2 parents e0c6c44 + e55852c commit be0de13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/i2c_api.c

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

0 commit comments

Comments
 (0)