Move level and color timer intervals to a central place, both 50hz.

main
MartB 2022-04-04 01:53:35 +02:00
parent b297184185
commit 2a6a6e8697
3 changed files with 6 additions and 10 deletions

View File

@ -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
*/ */

View File

@ -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
*/ */

View File

@ -33,11 +33,6 @@
#ifdef ZCL_LEVEL_CTRL #ifdef ZCL_LEVEL_CTRL
/**********************************************************************
* LOCAL CONSTANTS
*/
#define ZCL_LEVEL_CHANGE_INTERVAL 100
/********************************************************************** /**********************************************************************
* TYPEDEFS * TYPEDEFS
*/ */