Light: include ON_OFF capability to BRIGHTNESS ColorMode (#2186)

This commit is contained in:
puuu 2021-08-21 19:26:24 +09:00 committed by Jesse Hills
parent 63d87b17aa
commit 3869e56521
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -52,7 +52,7 @@ enum class ColorMode : uint8_t {
/// Only on/off control.
ON_OFF = (uint8_t) ColorCapability::ON_OFF,
/// Dimmable light.
BRIGHTNESS = (uint8_t) ColorCapability::BRIGHTNESS,
BRIGHTNESS = (uint8_t)(ColorCapability::ON_OFF | ColorCapability::BRIGHTNESS),
/// White output only (use only if the light also has another color mode such as RGB).
WHITE = (uint8_t)(ColorCapability::ON_OFF | ColorCapability::BRIGHTNESS | ColorCapability::WHITE),
/// Controllable color temperature output.