Changeset 709476f4 in mainline for uspace/drv/time/cmos-rtc/cmos-rtc.c


Ignore:
Timestamp:
2012-04-15T22:52:19Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
074324f1
Parents:
2703b824
Message:

rtc: fix bug when setting the "month" rtc register

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/time/cmos-rtc/cmos-rtc.c

    r2703b824 r709476f4  
    397397                t->tm_hour = bin2bcd(t->tm_hour);
    398398                t->tm_mday = bin2bcd(t->tm_mday);
    399                 t->tm_mon  = bin2bcd(t->tm_mon + 1);
     399                t->tm_mon  = bin2bcd(t->tm_mon);
    400400                t->tm_year = bin2bcd(t->tm_year);
    401401        }
Note: See TracChangeset for help on using the changeset viewer.