Changeset 1020918 in mainline
- Timestamp:
- 2012-09-13T19:01:16Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0d911ee
- Parents:
- 3ccba14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/date/date.c
r3ccba14 r1020918 34 34 #include <time.h> 35 35 #include <malloc.h> 36 #include <ipc/clock_ctl.h>37 36 #include <getopt.h> 38 37 #include <ctype.h> … … 146 145 } 147 146 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 156 147 /* Read the current date/time */ 157 148 rc = clock_dev_time_get(sess, &t);
Note:
See TracChangeset
for help on using the changeset viewer.