Changeset 751cabc in mainline
- Timestamp:
- 2012-04-05T19:42:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 85f2064
- Parents:
- f61a326
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/date/date.c
rf61a326 r751cabc 34 34 #include <time.h> 35 35 #include <malloc.h> 36 #include <ipc/clock_ctl.h> 36 37 37 38 #define NAME "date" … … 46 47 service_id_t svc_id; 47 48 char *svc_name = NULL; 49 50 sysarg_t battery_ok; 48 51 struct tm t; 49 52 … … 93 96 } 94 97 98 async_exch_t *exch = async_exchange_begin(sess); 99 rc = async_req_0_1(exch, CLOCK_GET_BATTERY_STATUS, &battery_ok); 100 async_exchange_end(exch); 101 102 if (rc == EOK && !battery_ok) 103 printf(NAME ": Warning! RTC battery dead\n"); 104 95 105 /* Read the current date/time */ 96 106 rc = clock_dev_time_get(sess, &t);
Note:
See TracChangeset
for help on using the changeset viewer.