Move level and color timer intervals to a central place, both 50hz.
parent
b297184185
commit
2a6a6e8697
|
@ -30,6 +30,12 @@
|
||||||
#define SAMPLE_LIGHT_ENDPOINT 0x01
|
#define SAMPLE_LIGHT_ENDPOINT 0x01
|
||||||
#define SAMPLE_TEST_ENDPOINT 0x02
|
#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
|
* TYPEDEFS
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -33,11 +33,6 @@
|
||||||
|
|
||||||
#ifdef ZCL_LIGHT_COLOR_CONTROL
|
#ifdef ZCL_LIGHT_COLOR_CONTROL
|
||||||
|
|
||||||
/**********************************************************************
|
|
||||||
* LOCAL CONSTANTS
|
|
||||||
*/
|
|
||||||
#define ZCL_COLOR_CHANGE_INTERVAL 20 // Step 50 times a second, every 20ms
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* TYPEDEFS
|
* TYPEDEFS
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -33,11 +33,6 @@
|
||||||
|
|
||||||
#ifdef ZCL_LEVEL_CTRL
|
#ifdef ZCL_LEVEL_CTRL
|
||||||
|
|
||||||
/**********************************************************************
|
|
||||||
* LOCAL CONSTANTS
|
|
||||||
*/
|
|
||||||
#define ZCL_LEVEL_CHANGE_INTERVAL 100
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* TYPEDEFS
|
* TYPEDEFS
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue