@@ -40,7 +40,7 @@ use std::sync::{Arc, Mutex};
40
40
struct Node {
41
41
pub endpoint : u16 ,
42
42
pub cluster : u32 ,
43
- pub command : u16 ,
43
+ pub command : u32 ,
44
44
pub variable : u8 ,
45
45
}
46
46
@@ -82,7 +82,7 @@ impl InteractionConsumer for DataModel {
82
82
let mut common_data = self . node . lock ( ) . unwrap ( ) ;
83
83
common_data. endpoint = cmd_path_ib. path . endpoint . unwrap_or ( 1 ) ;
84
84
common_data. cluster = cmd_path_ib. path . cluster . unwrap_or ( 0 ) ;
85
- common_data. command = cmd_path_ib. path . leaf . unwrap_or ( 0 ) as u16 ;
85
+ common_data. command = cmd_path_ib. path . leaf . unwrap_or ( 0 ) ;
86
86
data. confirm_struct ( ) . unwrap ( ) ;
87
87
common_data. variable = data. find_tag ( 0 ) . unwrap ( ) . u8 ( ) . unwrap ( ) ;
88
88
}
@@ -178,8 +178,9 @@ fn test_valid_invoke_cmd() -> Result<(), Error> {
178
178
// An invoke command for endpoint 0, cluster 49, command 12 and a u8 variable value of 0x05
179
179
180
180
let b = [
181
- 0x15 , 0x28 , 0x00 , 0x28 , 0x01 , 0x36 , 0x02 , 0x15 , 0x37 , 0x00 , 0x24 , 0x00 , 0x00 , 0x24 , 0x01 ,
182
- 0x31 , 0x24 , 0x02 , 0x0c , 0x18 , 0x35 , 0x01 , 0x24 , 0x00 , 0x05 , 0x18 , 0x18 , 0x18 , 0x18 ,
181
+ 0x15 , 0x28 , 0x00 , 0x28 , 0x01 , 0x36 , 0x02 , 0x15 , 0x37 , 0x00 , 0x25 , 0x00 , 0x00 , 0x00 , 0x26 ,
182
+ 0x01 , 0x31 , 0x00 , 0x00 , 0x00 , 0x26 , 0x02 , 0x0c , 0x00 , 0x00 , 0x00 , 0x18 , 0x35 , 0x01 , 0x24 ,
183
+ 0x00 , 0x05 , 0x18 , 0x18 , 0x18 , 0x18 ,
183
184
] ;
184
185
185
186
let mut out_buf: [ u8 ; 20 ] = [ 0 ; 20 ] ;
0 commit comments