X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tmk_core%2Fcommon%2Fbacklight.h;h=0a38771206071571048e2734e7015c5875b930ed;hb=3895b4b86867c6323f4e595b9726d02158bca612;hp=cc56fb9af060859a9d05b3bc6d5b3841b82dbd71;hpb=a32f7e1a25a8a200d838aa8256ffe39708fbd723;p=qmk_firmware.git diff --git a/tmk_core/common/backlight.h b/tmk_core/common/backlight.h index cc56fb9af..0a3877120 100644 --- a/tmk_core/common/backlight.h +++ b/tmk_core/common/backlight.h @@ -22,8 +22,8 @@ along with this program. If not, see . #ifndef BACKLIGHT_LEVELS #define BACKLIGHT_LEVELS 3 -#elif BACKLIGHT_LEVELS > 15 - #error "Maximum value of BACKLIGHT_LEVELS is 15" +#elif BACKLIGHT_LEVELS > 31 + #error "Maximum value of BACKLIGHT_LEVELS is 31" #endif typedef union { @@ -31,7 +31,8 @@ typedef union { struct { bool enable :1; bool breathing :1; - uint8_t level :4; + uint8_t reserved :1; // Reserved for possible future backlight modes + uint8_t level :5; }; } backlight_config_t;