diff --git a/sampleLight.h b/sampleLight.h index 715732b..b1f5b0c 100644 --- a/sampleLight.h +++ b/sampleLight.h @@ -30,6 +30,12 @@ #define SAMPLE_LIGHT_ENDPOINT 0x01 #define SAMPLE_TEST_ENDPOINT 0x02 +/********************************************************************** + * TIMER CONSTANTS + */ +#define ZCL_LEVEL_CHANGE_INTERVAL 20 // Step 50 times a second, every 20ms +#define ZCL_COLOR_CHANGE_INTERVAL 20 // see above + /********************************************************************** * TYPEDEFS */ diff --git a/zcl_colorCtrlCb.c b/zcl_colorCtrlCb.c index f160dd4..6642aa2 100644 --- a/zcl_colorCtrlCb.c +++ b/zcl_colorCtrlCb.c @@ -33,11 +33,6 @@ #ifdef ZCL_LIGHT_COLOR_CONTROL -/********************************************************************** - * LOCAL CONSTANTS - */ -#define ZCL_COLOR_CHANGE_INTERVAL 20 // Step 50 times a second, every 20ms - /********************************************************************** * TYPEDEFS */ diff --git a/zcl_levelCb.c b/zcl_levelCb.c index 6008ec2..83799ed 100644 --- a/zcl_levelCb.c +++ b/zcl_levelCb.c @@ -33,11 +33,6 @@ #ifdef ZCL_LEVEL_CTRL -/********************************************************************** - * LOCAL CONSTANTS - */ -#define ZCL_LEVEL_CHANGE_INTERVAL 100 - /********************************************************************** * TYPEDEFS */