Examples really benefit from actually working ;-)

This commit is contained in:
oliverschmidt 2006-09-09 23:29:50 +00:00
parent 83561d8963
commit d3e4b7524d

View file

@ -121,6 +121,13 @@ PROCESS_THREAD(example_packet_service_process, ev, data)
*/
SERVICE_REGISTER(example_packet_service);
/*
* Now we'll make sure that the poll handler is executed
* initially. We do this by calling process_poll() with this
* process as its argument.
*/
process_poll(&example_packet_service_process);
/*
* And we wait for either the process to exit, or for the service to
* be removed (by someone else).