From a84e8b9345568775fdd0fa9716b7379f6def3dd5 Mon Sep 17 00:00:00 2001 From: Florent Duchon Date: Wed, 16 May 2012 17:19:50 +0200 Subject: digital/beacon: start/stop the motor using NETWORK_JACK_STATE --- digital/beacon/src/network.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'digital/beacon/src') diff --git a/digital/beacon/src/network.c b/digital/beacon/src/network.c index 918ce3ad..50b86d71 100644 --- a/digital/beacon/src/network.c +++ b/digital/beacon/src/network.c @@ -31,6 +31,7 @@ #include "debug_avr.h" #include "led.h" +#include "motor.h" // Endpoint parameters static SimpleDescriptor_t simpleDescriptor = { APP_ENDPOINT, APP_PROFILE_ID, 1, 1, 0, 0 , NULL, 0, NULL }; @@ -289,6 +290,7 @@ void APS_DataIndication(APS_DataInd_t* indData) switch(appMessage->data[NETWORK_MSG_TYPE_FIELD]) { case NETWORK_JACK_STATE: + motor_start_stop_control(); break; case NETWORK_OPPONENT_NUMBER: break; -- cgit v1.2.3