Skip to main content
Visitor II
April 6, 2007
Question

Bug in library (RTC_GetTime)

  • April 6, 2007
  • 2 replies
  • 780 views
Posted on April 06, 2007 at 12:12

Bug in library (RTC_GetTime)

    This topic has been closed for replies.

    2 replies

    vromanov2Author
    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:40

    Error in marged >> line

    Time->seconds = BCD2ToBYTE(Time->seconds);

    >>Time->seconds = BCD3ToWORD(Time->milliseconds);

    Correct code is

    Time->seconds = BCD2ToBYTE(Time->seconds);

    Time->milliseconds = BCD3ToWORD(Time->milliseconds);

    Visitor II
    May 17, 2011
    Posted on May 17, 2011 at 09:40

    Hi Vromanov,

    Thanks for mentioning this error.

    It will be corrected in next release of the library.

    Best regards,

    STARM