From c9528fb01019bb47cee07994e521fe01d66f96ee Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Mon, 30 Jun 2008 08:08:59 +0000 Subject: [PATCH] Added name, made default listen time shorter --- core/net/mac/lpp.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/net/mac/lpp.c b/core/net/mac/lpp.c index a7058a643..b03fb76ae 100644 --- a/core/net/mac/lpp.c +++ b/core/net/mac/lpp.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: lpp.c,v 1.4 2008/05/16 21:31:57 oliverschmidt Exp $ + * $Id: lpp.c,v 1.5 2008/06/30 08:08:59 adamdunkels Exp $ */ /** @@ -82,8 +82,8 @@ static struct ctimer timer; static struct queuebuf *queued_packet; -#define LISTEN_TIME CLOCK_SECOND / 64 -#define OFF_TIME CLOCK_SECOND / 2 +#define LISTEN_TIME CLOCK_SECOND / 128 +#define OFF_TIME CLOCK_SECOND / 4 #define DUMP_QUEUED_PACKET 1 @@ -291,6 +291,7 @@ off(int keep_radio_on) } /*---------------------------------------------------------------------------*/ static const struct mac_driver lpp_driver = { + "LPP", send_packet, read_packet, set_receive_function,