Skip to content

Commit

Permalink
Update main-common.cpp
Browse files Browse the repository at this point in the history
FanControl
  • Loading branch information
lboue authored Mar 21, 2024
1 parent 1c1b7ee commit 0d32a7e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/all-clusters-app/linux/main-common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "AllClustersCommandDelegate.h"
#include "AppOptions.h"
#include "ValveControlDelegate.h"
#include "FanControlManager.h"
#include "WindowCoveringManager.h"
#include "air-quality-instance.h"
#include "device-energy-management-modes.h"
Expand Down Expand Up @@ -72,6 +73,7 @@ constexpr char kChipEventFifoPathPrefix[] = "/tmp/chip_all_clusters_fifo_";
LowPowerManager sLowPowerManager;
NamedPipeCommands sChipNamedPipeCommands;
AllClustersCommandDelegate sAllClustersCommandDelegate;
Clusters::FanControl::FanControlManager sFanControlngManager;
Clusters::WindowCovering::WindowCoveringManager sWindowCoveringManager;

Clusters::TemperatureControl::AppSupportedTemperatureLevelsDelegate sAppSupportedTemperatureLevelsDelegate;
Expand Down Expand Up @@ -284,6 +286,13 @@ void emberAfLowPowerClusterInitCallback(EndpointId endpoint)
Clusters::LowPower::SetDefaultDelegate(endpoint, &sLowPowerManager);
}

void emberAfsFanControlClusterInitCallback(chip::EndpointId endpoint)
{
sFanControlManager.Init(endpoint);
Clusters::sFanControl::SetDefaultDelegate(endpoint, &sFanControlManager);
Clusters::sFanControl::ConfigStatusUpdateFeatures(endpoint);
}

void emberAfWindowCoveringClusterInitCallback(chip::EndpointId endpoint)
{
sWindowCoveringManager.Init(endpoint);
Expand Down

0 comments on commit 0d32a7e

Please sign in to comment.