aboutsummaryrefslogtreecommitdiff
path: root/kernel/ctrl.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/ctrl.c')
-rw-r--r--kernel/ctrl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/ctrl.c b/kernel/ctrl.c
index 3becb49..720002e 100644
--- a/kernel/ctrl.c
+++ b/kernel/ctrl.c
@@ -26,15 +26,15 @@ ctrl(void *arg)
{
struct ctrlarg *a = arg;
- update(0, MSEC(500));
+ update(now(), MSEC(500));
for (;;) {
- sprintf(a->lcd->first, "the time is now:");
+ sprintf(a->lcd->first, "%8lx", now());
sprintf(a->lcd->second, "%4d:%.2d:%.2d:%.2d",
a->clock->d,
a->clock->h,
a->clock->m,
a->clock->s);
- sleep(SOFT, MSEC(500));
+ update(MSEC(500), MSEC(750));
}
}