Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset f61a326 in mainline


Ignore:
Timestamp:
2012-04-05T19:37:32Z (10 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master
Children:
751cabc
Parents:
2a4c22d
Message:

rtc: Fix cmos battery status reading

File:
1 edited

Legend:

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

    r2a4c22d rf61a326  
    406406        switch (method) {
    407407        case CLOCK_GET_BATTERY_STATUS:
    408                 batt_ok = !(rtc_register_read(rtc, RTC_STATUS_D) &
    409                     RTC_BATTERY_OK);
     408                batt_ok = rtc_register_read(rtc, RTC_STATUS_D) &
     409                    RTC_BATTERY_OK;
    410410                async_answer_1(callid, EOK, batt_ok);
    411411                break;
Note: See TracChangeset for help on using the changeset viewer.