From edbb96bcd9f277ad73ade113da8263dc64cbda3e Mon Sep 17 00:00:00 2001 From: ingDIY <10012263+ingDIY@users.noreply.github.com> Date: Mon, 3 Oct 2022 19:34:52 +0200 Subject: [PATCH] Update const.h added #if case to exclude warning in case of ABL=0 --- wled00/const.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wled00/const.h b/wled00/const.h index 43a272253..0240cce1d 100644 --- a/wled00/const.h +++ b/wled00/const.h @@ -314,11 +314,12 @@ #define E131_MAX_UNIVERSE_COUNT 12 #endif #endif - +#define ABL_MILLIAMPS_DEFAULT 200 #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 - #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" #define ABL_MILLIAMPS_DEFAULT 250 #endif