Changeset 1020918 in mainline


Ignore:
Timestamp:
2012-09-13T19:01:16Z (12 years ago)
Author:
Maurizio Lombardi <m.lombardi85@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0d911ee
Parents:
3ccba14
Message:

date: do not check the rtc battery status in the date command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/date/date.c

    r3ccba14 r1020918  
    3434#include <time.h>
    3535#include <malloc.h>
    36 #include <ipc/clock_ctl.h>
    3736#include <getopt.h>
    3837#include <ctype.h>
     
    146145        }
    147146
    148         /* Check the battery status (if present) */
    149         async_exch_t *exch = async_exchange_begin(sess);
    150         rc = async_req_0_1(exch, CLOCK_GET_BATTERY_STATUS, &battery_ok);
    151         async_exchange_end(exch);
    152 
    153         if (rc == EOK && !battery_ok)
    154                 printf(NAME ": Warning! RTC battery dead\n");
    155 
    156147        /* Read the current date/time */
    157148        rc = clock_dev_time_get(sess, &t);
Note: See TracChangeset for help on using the changeset viewer.