File tree 2 files changed +5
-13
lines changed
examples/chef/common/clusters/keypad-input
2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 23
23
#include < app/util/config.h>
24
24
25
25
using namespace chip ;
26
+ using namespace chip ::app;
26
27
using namespace chip ::app::Clusters::KeypadInput;
27
28
28
29
void KeypadInputManager::HandleSendKey (CommandResponseHelper<SendKeyResponseType> & helper, const CecKeyCodeType & keycCode)
@@ -101,11 +102,6 @@ void KeypadInputManager::HandleSendKey(CommandResponseHelper<SendKeyResponseType
101
102
102
103
uint32_t KeypadInputManager::GetFeatureMap (chip::EndpointId endpoint)
103
104
{
104
- if (endpoint >= EMBER_AF_KEYPAD_INPUT_CLUSTER_SERVER_ENDPOINT_COUNT)
105
- {
106
- return mDynamicEndpointFeatureMap ;
107
- }
108
-
109
105
uint32_t featureMap = 0 ;
110
106
Attributes::FeatureMap::Get (endpoint, &featureMap);
111
107
return featureMap;
Original file line number Diff line number Diff line change 20
20
21
21
#include < app/clusters/keypad-input-server/keypad-input-server.h>
22
22
23
- using chip::app::CommandResponseHelper;
24
- using KeypadInputDelegate = chip::app::Clusters::KeypadInput::Delegate;
25
- using SendKeyResponseType = chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::Type;
26
- using CecKeyCodeType = chip::app::Clusters::KeypadInput::CECKeyCodeEnum;
27
23
28
- class KeypadInputManager : public KeypadInputDelegate
24
+ class KeypadInputManager : public chip ::app::Clusters::KeypadInput::Delegate
29
25
{
26
+ using SendKeyResponseType = chip::app::Clusters::KeypadInput::Commands::SendKeyResponse::Type;
27
+ using CecKeyCodeType = chip::app::Clusters::KeypadInput::CECKeyCodeEnum;
30
28
public:
31
- void HandleSendKey (CommandResponseHelper<SendKeyResponseType> & helper, const CecKeyCodeType & keyCode) override ;
29
+ void HandleSendKey (chip::app:: CommandResponseHelper<SendKeyResponseType> & helper, const CecKeyCodeType & keyCode) override ;
32
30
33
31
uint32_t GetFeatureMap (chip::EndpointId endpoint) override ;
34
32
35
33
private:
36
- // TODO: set this based upon meta data from app
37
- uint32_t mDynamicEndpointFeatureMap = 7 ;
38
34
};
You can’t perform that action at this time.
0 commit comments