Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈伟灿
k-sdk
Commits
52cb12b2
Commit
52cb12b2
authored
Aug 31, 2020
by
尹佳钦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复复位问题
parent
2ad424a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
platform/zigbee/app/builder/Z3GatewayHost/kk_test.c
platform/zigbee/app/builder/Z3GatewayHost/kk_test.c
+13
-4
No files found.
platform/zigbee/app/builder/Z3GatewayHost/kk_test.c
View file @
52cb12b2
...
@@ -648,15 +648,23 @@ void kk_dispatch_report_attribute(EmberEUI64 eui64,
...
@@ -648,15 +648,23 @@ void kk_dispatch_report_attribute(EmberEUI64 eui64,
kk_zigbee_ctrl_map_t
*
report_item
;
kk_zigbee_ctrl_map_t
*
report_item
;
for
(
i
=
0
;
i
<
PROPERTIES_MAX_NUM
;
i
++
){
for
(
i
=
0
;
i
<
PROPERTIES_MAX_NUM
;
i
++
){
device_item
=
&
g_tsl_zigbee_map
[
i
];
device_item
=
&
g_tsl_zigbee_map
[
i
];
report_item
=
&
device_item
->
zigbee_ctrl
;
if
(
device_item
!=
NULL
){
report_item
=
&
device_item
->
zigbee_ctrl
;
if
(
report_item
==
NULL
){
emberAfAppPrintln
(
"not find in map table-2"
);
return
;
}
}
else
{
emberAfAppPrintln
(
"not find in map table-1"
);
return
;
}
if
(
device_item
==
NULL
||
report_item
==
NULL
)
return
;
for
(
j
=
0
;
j
<
device_item
->
num
;
j
++
){
for
(
j
=
0
;
j
<
device_item
->
num
;
j
++
){
if
(
report_item
[
j
].
clusterId
==
clusterId
&&
if
(
report_item
[
j
].
clusterId
==
clusterId
&&
report_item
[
j
].
attributeId
==
attributeId
){
report_item
[
j
].
attributeId
==
attributeId
){
emberAfAppPrintln
(
"i=%d,j=%d"
,
i
,
j
);
emberAfAppPrintln
(
"i=%d,j=%d"
,
i
,
j
);
result
=
report_item
[
j
].
zigbee_report
(
eui64
,
EP
,
clusterId
,
attributeId
,
dataType
,
len
,
data
);
if
(
report_item
[
j
].
zigbee_report
!=
NULL
){
result
=
report_item
[
j
].
zigbee_report
(
eui64
,
EP
,
clusterId
,
attributeId
,
dataType
,
len
,
data
);
if
(
!
result
){
if
(
!
result
){
emberAfAppPrintln
(
"result=%d"
,
result
);
emberAfAppPrintln
(
"result=%d"
,
result
);
emberAfAppPrintln
(
"mac:"
);
emberAfAppPrintln
(
"mac:"
);
...
@@ -666,6 +674,7 @@ void kk_dispatch_report_attribute(EmberEUI64 eui64,
...
@@ -666,6 +674,7 @@ void kk_dispatch_report_attribute(EmberEUI64 eui64,
}
}
return
;
return
;
}
}
}
}
}
}
}
emberAfAppPrintln
(
"not find report item!!!ep=%d,clu=0x%x,attr=0x%x
\n
"
,
EP
,
clusterId
,
attributeId
);
emberAfAppPrintln
(
"not find report item!!!ep=%d,clu=0x%x,attr=0x%x
\n
"
,
EP
,
clusterId
,
attributeId
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment