mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-18 12:05:11 +00:00
added autostart + replaced codeprop_event_quit with PROCESS_EVENT_EXIT
This commit is contained in:
parent
62e32d2b23
commit
9eb477f8f5
@ -28,12 +28,14 @@
|
||||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: beeper.c,v 1.1 2006/06/18 07:48:48 adamdunkels Exp $
|
||||
* @(#)$Id: beeper.c,v 1.2 2006/06/21 12:40:14 nifi Exp $
|
||||
*/
|
||||
#include "contiki-esb.h"
|
||||
|
||||
PROCESS(beeper_process, "Beeper");
|
||||
|
||||
AUTOSTART_PROCESSES(&beeper_process);
|
||||
|
||||
static struct etimer etimer;
|
||||
|
||||
static struct pt beeper_pt;
|
||||
@ -72,7 +74,7 @@ PROCESS_THREAD(beeper_process, ev, data)
|
||||
|
||||
PROCESS_WAIT_EVENT();
|
||||
|
||||
if(ev == codeprop_event_quit) {
|
||||
if(ev == PROCESS_EVENT_EXIT) {
|
||||
break;
|
||||
} else if(ev == sensors_event &&
|
||||
data == &button_sensor) {
|
||||
|
Loading…
Reference in New Issue
Block a user