Skip to content

Commit c790b23

Browse files
restyled-commitslboue
authored andcommitted
Restyled by clang-format
1 parent f49cc3a commit c790b23

File tree

4 files changed

+19
-15
lines changed

4 files changed

+19
-15
lines changed

src/app/clusters/thermostat-server/thermostat-server-presets.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,8 @@ Status ThermostatAttrAccess::SetActivePreset(EndpointId endpoint, DataModel::Nul
319319
Optional<int16_t> coolingSetpointValue = matchingPreset.GetCoolingSetpoint();
320320
if (coolingSetpointValue.HasValue())
321321
{
322-
Status status = OccupiedCoolingSetpoint::Set(endpoint, EnforceCoolingSetpointLimits(coolingSetpointValue.Value(), endpoint));
322+
Status status =
323+
OccupiedCoolingSetpoint::Set(endpoint, EnforceCoolingSetpointLimits(coolingSetpointValue.Value(), endpoint));
323324
if (status != Status::Success)
324325
{
325326
ChipLogError(Zcl, "Failed to set OccupiedCoolingSetpoint with status %u", to_underlying(status));
@@ -330,7 +331,8 @@ Status ThermostatAttrAccess::SetActivePreset(EndpointId endpoint, DataModel::Nul
330331
Optional<int16_t> heatingSetpointValue = matchingPreset.GetHeatingSetpoint();
331332
if (heatingSetpointValue.HasValue())
332333
{
333-
Status status = OccupiedHeatingSetpoint::Set(endpoint, EnforceHeatingSetpointLimits(heatingSetpointValue.Value(), endpoint));
334+
Status status =
335+
OccupiedHeatingSetpoint::Set(endpoint, EnforceHeatingSetpointLimits(heatingSetpointValue.Value(), endpoint));
334336
if (status != Status::Success)
335337
{
336338
ChipLogError(Zcl, "Failed to set OccupiedHeatingSetpoint with status %u", to_underlying(status));

src/app/clusters/thermostat-server/thermostat-server-test-stubs.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,21 @@ Protocols::InteractionModel::Status Get(EndpointId endpoint, uint32_t * value)
3838
} // namespace FeatureMap
3939

4040
namespace RemoteSensing {
41-
Protocols::InteractionModel::Status Get(EndpointId endpoint, chip::BitMask<chip::app::Clusters::Thermostat::RemoteSensingBitmap> * value)
41+
Protocols::InteractionModel::Status Get(EndpointId endpoint,
42+
chip::BitMask<chip::app::Clusters::Thermostat::RemoteSensingBitmap> * value)
4243
{
4344
*value = BitMask<chip::app::Clusters::Thermostat::RemoteSensingBitmap>{};
4445
return Protocols::InteractionModel::Status::Success;
4546
}
4647

47-
Protocols::InteractionModel::Status Set(EndpointId endpoint, chip::BitMask<chip::app::Clusters::Thermostat::RemoteSensingBitmap> value)
48+
Protocols::InteractionModel::Status Set(EndpointId endpoint,
49+
chip::BitMask<chip::app::Clusters::Thermostat::RemoteSensingBitmap> value)
4850
{
4951
return Protocols::InteractionModel::Status::Success;
5052
}
5153

52-
Protocols::InteractionModel::Status Set(EndpointId endpoint,
53-
chip::BitMask<chip::app::Clusters::Thermostat::RemoteSensingBitmap> value,
54-
MarkAttributeDirty markDirty)
54+
Protocols::InteractionModel::Status
55+
Set(EndpointId endpoint, chip::BitMask<chip::app::Clusters::Thermostat::RemoteSensingBitmap> value, MarkAttributeDirty markDirty)
5556
{
5657
return Protocols::InteractionModel::Status::Success;
5758
}

src/app/tests/TestThermostatServerPresets.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class TestThermostatDelegate : public Delegate
4343
preset.SetHeatingSetpoint(chip::MakeOptional<int16_t>(1900));
4444
preset.SetBuiltIn(chip::app::DataModel::MakeNullable(false));
4545

46-
mPresets[0] = preset;
46+
mPresets[0] = preset;
4747
mPresetCount = 1;
4848
}
4949

@@ -111,7 +111,8 @@ class TestThermostatDelegate : public Delegate
111111
currentThermostatSuggestion.SetNull();
112112
}
113113

114-
chip::app::DataModel::Nullable<ThermostatSuggestionNotFollowingReasonBitmap> GetThermostatSuggestionNotFollowingReason() override
114+
chip::app::DataModel::Nullable<ThermostatSuggestionNotFollowingReasonBitmap>
115+
GetThermostatSuggestionNotFollowingReason() override
115116
{
116117
return chip::app::DataModel::NullNullable;
117118
}
@@ -140,7 +141,7 @@ class TestThermostatDelegate : public Delegate
140141

141142
private:
142143
std::array<PresetStructWithOwnedMembers, 1> mPresets = {};
143-
size_t mPresetCount = 0;
144+
size_t mPresetCount = 0;
144145
};
145146

146147
} // namespace
@@ -193,9 +194,10 @@ TEST(TestThermostatServerPresets, SetActivePresetAppliesPresetSetpoints)
193194

194195
int16_t occupiedCoolingSetpoint = 0;
195196
int16_t occupiedHeatingSetpoint = 0;
196-
auto coolingStatus = chip::app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::Get(
197-
kEndpoint, &occupiedCoolingSetpoint);
198-
auto heatingStatus = chip::app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::Get(kEndpoint, &occupiedHeatingSetpoint);
197+
auto coolingStatus =
198+
chip::app::Clusters::Thermostat::Attributes::OccupiedCoolingSetpoint::Get(kEndpoint, &occupiedCoolingSetpoint);
199+
auto heatingStatus =
200+
chip::app::Clusters::Thermostat::Attributes::OccupiedHeatingSetpoint::Get(kEndpoint, &occupiedHeatingSetpoint);
199201
chip::DeviceLayer::PlatformMgr().UnlockChipStack();
200202

201203
EXPECT_EQ(status, Status::Success);

src/app/tests/ThermostatAttrAccessTestAccess.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ class ThermostatAttrAccessTestAccess
3333
ThermostatAttrAccessTestAccess() = delete;
3434
explicit ThermostatAttrAccessTestAccess(chip::app::Clusters::Thermostat::ThermostatAttrAccess * access) : mAccess(access) {}
3535

36-
Protocols::InteractionModel::Status SetActivePreset(EndpointId endpoint,
37-
chip::app::DataModel::Nullable<ByteSpan> presetHandle)
36+
Protocols::InteractionModel::Status SetActivePreset(EndpointId endpoint, chip::app::DataModel::Nullable<ByteSpan> presetHandle)
3837
{
3938
return mAccess->SetActivePreset(endpoint, presetHandle);
4039
}

0 commit comments

Comments
 (0)