Skip to content

Commit e2bb4a3

Browse files
[Thermostat] set CurrentThermostatSuggestion from earliest in-effect suggestion (project-chip#71617)
* [Thermostat] set CurrentThermostatSuggestion from earliest in-effect suggestion * Restyled by clang-format --------- Co-authored-by: Restyled.io <commits@restyled.io>
1 parent b468bbb commit e2bb4a3

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

examples/thermostat/thermostat-common/src/thermostat-delegate-impl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,7 @@ CHIP_ERROR ThermostatDelegate::ReEvaluateCurrentSuggestion()
435435
Seconds32 currentMatterEpochTimestamp = Seconds32(currentMatterEpochTimestampInSeconds);
436436

437437
// For the reference thermostat app, we will always choose a suggestion with the earliest effective time.
438-
mIndexOfCurrentSuggestion = GetThermostatSuggestionIndexWithEarliestEffectiveTime(currentMatterEpochTimestamp);
439-
SetCurrentThermostatSuggestion(mIndexOfCurrentSuggestion);
438+
SetCurrentThermostatSuggestion(GetThermostatSuggestionIndexWithEarliestEffectiveTime(currentMatterEpochTimestamp));
440439

441440
DataModel::Nullable<ThermostatSuggestionStructWithOwnedMembers> nullableCurrentThermostatSuggestion;
442441
GetCurrentThermostatSuggestion(nullableCurrentThermostatSuggestion);

0 commit comments

Comments
 (0)