Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and mideayanghui committed Aug 3, 2023
1 parent 49d1b0c commit e6c0643
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions examples/refrigerator-app/asr/src/AppTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ void AppTask::AppTaskMain(void * pvParameter)
PrintOnboardingCodes(RendezvousInformationFlag(RendezvousInformationFlag::kOnNetwork));
#endif /* CONFIG_NETWORK_LAYER_BLE */

//set Parent Endpoint and Composition Type for an Endpoint
app::EndpointId kRefEndpointId = 1;
app::EndpointId kColdCabinetEndpointId = 2;
// set Parent Endpoint and Composition Type for an Endpoint
app::EndpointId kRefEndpointId = 1;
app::EndpointId kColdCabinetEndpointId = 2;
app::EndpointId kFreezeCabinetEndpointId = 3;
app::SetTreeCompositionForEndpoint(kRefEndpointId);
app::SetParentEndpointForEndpoint(kColdCabinetEndpointId, kRefEndpointId);
Expand Down
6 changes: 3 additions & 3 deletions examples/refrigerator-app/linux/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ app::Clusters::TemperatureControl::AppSupportedTemperatureLevelsDelegate sAppSup

void ApplicationInit()
{
//set Parent Endpoint and Composition Type for an Endpoint
EndpointId kRefEndpointId = 1;
EndpointId kColdCabinetEndpointId = 2;
// set Parent Endpoint and Composition Type for an Endpoint
EndpointId kRefEndpointId = 1;
EndpointId kColdCabinetEndpointId = 2;
EndpointId kFreezeCabinetEndpointId = 3;
SetTreeCompositionForEndpoint(kRefEndpointId);
SetParentEndpointForEndpoint(kColdCabinetEndpointId, kRefEndpointId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ using namespace chip::app::Clusters::TemperatureControl;
using chip::Protocols::InteractionModel::Status;

// TODO: Configure your options for each endpoint
CharSpan AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions[] = { CharSpan::fromCharString("Hot"), CharSpan::fromCharString("Warm"),
CharSpan AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions[] = { CharSpan::fromCharString("Hot"),
CharSpan::fromCharString("Warm"),
CharSpan::fromCharString("Freezing") };

const AppSupportedTemperatureLevelsDelegate::EndpointPair AppSupportedTemperatureLevelsDelegate::supportedOptionsByEndpoints
[EMBER_AF_TEMPERATURE_CONTROL_CLUSTER_SERVER_ENDPOINT_COUNT] = {
EndpointPair(2, AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions, ArraySize(AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions)), // Options for Endpoint 2
EndpointPair(3, AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions, ArraySize(AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions)), // Options for Endpoint 3
EndpointPair(2, AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions,
ArraySize(AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions)), // Options for Endpoint 2
EndpointPair(3, AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions,
ArraySize(AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions)), // Options for Endpoint 3
};

uint8_t AppSupportedTemperatureLevelsDelegate::Size()
Expand Down

0 comments on commit e6c0643

Please sign in to comment.