Update const.h

added #if case to exclude warning in case of ABL=0
This commit is contained in:
ingDIY 2022-10-03 19:34:52 +02:00
parent bdb1e839ed
commit edbb96bcd9

View File

@ -314,11 +314,12 @@
#define E131_MAX_UNIVERSE_COUNT 12 #define E131_MAX_UNIVERSE_COUNT 12
#endif #endif
#endif #endif
#define ABL_MILLIAMPS_DEFAULT 200
#ifndef ABL_MILLIAMPS_DEFAULT #ifndef ABL_MILLIAMPS_DEFAULT
#define ABL_MILLIAMPS_DEFAULT 850 // auto lower brightness to stay close to milliampere limit #define ABL_MILLIAMPS_DEFAULT 850 // auto lower brightness to stay close to milliampere limit
#else #else
#if ABL_MILLIAMPS_DEFAULT < 250 // make sure value is at least 250 #if ABL_MILLIAMPS_DEFAULT == 0 // disable ABL
#elif ABL_MILLIAMPS_DEFAULT < 250 // make sure value is at least 250
#warning "make sure value is at least 250" #warning "make sure value is at least 250"
#define ABL_MILLIAMPS_DEFAULT 250 #define ABL_MILLIAMPS_DEFAULT 250
#endif #endif