Skip to content

Commit

Permalink
arm: Fix DS1307 initialization for common STM32 logic
Browse files Browse the repository at this point in the history
Signed-off-by: Rodrigo Sim [email protected]
  • Loading branch information
rcsim authored and xiaoxiang781216 committed Aug 20, 2024
1 parent 4d4d8a6 commit 86c2e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boards/arm/stm32/common/src/stm32_ds1307.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int board_ds1307_initialize(int busno)
struct i2c_master_s *i2c;
int ret;

rtcinfo("Initialize I2C%d\n", DS1307_I2C_BUS);
rtcinfo("Initialize I2C%d\n", busno);

/* Initialize I2C */

Expand All @@ -81,7 +81,7 @@ int board_ds1307_initialize(int busno)
if (ret < 0)
{
rtcerr("ERROR: Failed to bind I2C%d to the DS1307 RTC driver\n",
DS1307_I2C_BUS);
busno);
return -ENODEV;
}

Expand Down

0 comments on commit 86c2e42

Please sign in to comment.