From 86c2e429ebf806ee8bfe5d898d2eb99c72964da4 Mon Sep 17 00:00:00 2001 From: Rodrigo Sim Date: Mon, 19 Aug 2024 20:17:26 -0300 Subject: [PATCH] arm: Fix DS1307 initialization for common STM32 logic Signed-off-by: Rodrigo Sim rcsim10@gmail.com --- boards/arm/stm32/common/src/stm32_ds1307.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/arm/stm32/common/src/stm32_ds1307.c b/boards/arm/stm32/common/src/stm32_ds1307.c index 328730da77..5b2d553c59 100644 --- a/boards/arm/stm32/common/src/stm32_ds1307.c +++ b/boards/arm/stm32/common/src/stm32_ds1307.c @@ -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 */ @@ -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; }