Remove LED use from examples that don't really need them
This commit is contained in:
parent
c8debbac22
commit
21151279c2
@ -36,7 +36,6 @@
|
|||||||
#include "contiki-net.h"
|
#include "contiki-net.h"
|
||||||
|
|
||||||
#include "lib/trickle-timer.h"
|
#include "lib/trickle-timer.h"
|
||||||
#include "dev/leds.h"
|
|
||||||
#include "lib/random.h"
|
#include "lib/random.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@ -80,7 +79,6 @@ AUTOSTART_PROCESSES(&trickle_protocol_process);
|
|||||||
static void
|
static void
|
||||||
tcpip_handler(void)
|
tcpip_handler(void)
|
||||||
{
|
{
|
||||||
leds_on(LEDS_GREEN);
|
|
||||||
if(uip_newdata()) {
|
if(uip_newdata()) {
|
||||||
PRINTF("At %lu (I=%lu, c=%u): ",
|
PRINTF("At %lu (I=%lu, c=%u): ",
|
||||||
(unsigned long)clock_time(), (unsigned long)tt.i_cur, tt.c);
|
(unsigned long)clock_time(), (unsigned long)tt.i_cur, tt.c);
|
||||||
@ -109,7 +107,6 @@ tcpip_handler(void)
|
|||||||
tt.ct.etimer.timer.interval));
|
tt.ct.etimer.timer.interval));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
leds_off(LEDS_GREEN);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
@ -126,8 +123,6 @@ trickle_tx(void *ptr, uint8_t suppress)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
leds_on(LEDS_RED);
|
|
||||||
|
|
||||||
PRINTF("At %lu (I=%lu, c=%u): ",
|
PRINTF("At %lu (I=%lu, c=%u): ",
|
||||||
(unsigned long)clock_time(), (unsigned long)loc_tt->i_cur,
|
(unsigned long)clock_time(), (unsigned long)loc_tt->i_cur,
|
||||||
loc_tt->c);
|
loc_tt->c);
|
||||||
@ -144,8 +139,6 @@ trickle_tx(void *ptr, uint8_t suppress)
|
|||||||
|
|
||||||
/* Restore to 'accept incoming from any IP' */
|
/* Restore to 'accept incoming from any IP' */
|
||||||
uip_create_unspecified(&trickle_conn->ripaddr);
|
uip_create_unspecified(&trickle_conn->ripaddr);
|
||||||
|
|
||||||
leds_off(LEDS_RED);
|
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
PROCESS_THREAD(trickle_protocol_process, ev, data)
|
PROCESS_THREAD(trickle_protocol_process, ev, data)
|
||||||
|
Loading…
Reference in New Issue
Block a user