summaryrefslogtreecommitdiff
path: root/digital/beacon
diff options
context:
space:
mode:
authorFlorent Duchon2012-05-16 17:19:50 +0200
committerFlorent Duchon2012-05-16 17:43:10 +0200
commita84e8b9345568775fdd0fa9716b7379f6def3dd5 (patch)
tree43053884cb8ed785384a454f3d9366f057cbf767 /digital/beacon
parent6828871a64e6b8e31f3b5d9069a62696832a3697 (diff)
digital/beacon: start/stop the motor using NETWORK_JACK_STATE
Diffstat (limited to 'digital/beacon')
-rw-r--r--digital/beacon/src/network.c2
1 files changed, 2 insertions, 0 deletions
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;