mirror of
https://github.com/apache/nuttx.git
synced 2026-08-03 05:09:00 +00:00
arm: Fix DS1307 initialization for common STM32 logic
Signed-off-by: Rodrigo Sim rcsim10@gmail.com
This commit is contained in:
parent
4d4d8a6ca5
commit
86c2e429eb
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue