Skip to content

Commit

Permalink
Fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmelveilleux committed Aug 26, 2024
1 parent 1cd86d5 commit c302299
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2678,11 +2678,11 @@ void ColorControlServer::startUpColorTempCommand(EndpointId endpoint)
// EnhancedColorMode attributes SHALL be set to 0x02 (color temperature). The values of
// the StartUpColorTemperatureMireds attribute are listed in the table below.
// Value Action on power up
// 0x0000-0xffef Set the ColorTemperatureMireds attribute to this value.
// 0x0001-0xffef Set the ColorTemperatureMireds attribute to this value.
// null Set the ColorTemperatureMireds attribute to its previous value.

// Initialize startUpColorTempMireds to "maintain previous value" value null
app::DataModel::Nullable<uint16_t> startUpColorTemp;
app::DataModel::Nullable<uint16_t> startUpColorTemp = DataModel::NullNullable;
Status status = Attributes::StartUpColorTemperatureMireds::Get(endpoint, startUpColorTemp);

if (status == Status::Success && !startUpColorTemp.IsNull())
Expand Down

0 comments on commit c302299

Please sign in to comment.