From e78ed7057d5a76db2d9f4b1cf525259bfe6ebcb2 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Wed, 24 Nov 2010 10:11:17 +0100 Subject: cesar/cp/beacon: activate SPOC by default using a config item, closes #2075 --- cesar/cp/beacon/Config | 1 + cesar/cp/beacon/src/beacon.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'cesar/cp/beacon') diff --git a/cesar/cp/beacon/Config b/cesar/cp/beacon/Config index e1b413d673..876dd03ed0 100644 --- a/cesar/cp/beacon/Config +++ b/cesar/cp/beacon/Config @@ -1,2 +1,3 @@ CONFIG_GPIO_LED_BEACON_TX_RX = n CONFIG_GPIO_LED_BEACON_TX_RX_GPIO = 0 +CONFIG_BEACON_SPOC_UPDATE_INTERVAL_DEFAULT_MS = 400 diff --git a/cesar/cp/beacon/src/beacon.c b/cesar/cp/beacon/src/beacon.c index 47adf0060d..fb9de5f7c7 100644 --- a/cesar/cp/beacon/src/beacon.c +++ b/cesar/cp/beacon/src/beacon.c @@ -35,9 +35,11 @@ #include "hal/gpio/gpio.h" #include "bsu/beacon/beacon.h" #include "bsu/bsu.h" +#include "config/beacon.h" /** Default interval between SPOC updates. */ -#define CP_BEACON_SPOC_UPDATE_INTERVAL_DEFAULT_MS 0 +#define CP_BEACON_SPOC_UPDATE_INTERVAL_DEFAULT_MS \ + CONFIG_BEACON_SPOC_UPDATE_INTERVAL_DEFAULT_MS /** Timer expires. * \param ctx the CP context. -- cgit v1.2.3