@@ -107,8 +107,9 @@ impl MessageData for PARAM_REQUEST_LIST_DATA {
107107 __input : & [u8 ],
108108 ) - > Result < Self , ::mavlink_core ::error ::ParserError > {
109109 let avail_len = __input .len ();
110- let mut payload_buf = [ 0 ; Self :: ENCODED_LEN ] ;
110+ let mut payload_buf;
111111 let mut buf = if avail_len < Self ::ENCODED_LEN {
112+ payload_buf = [0; Self::ENCODED_LEN ];
112113 payload_buf [0. .avail_len ].copy_from_slice (__input );
113114 Bytes ::new (& payload_buf )
114115 } else {
@@ -190,8 +191,9 @@ impl MessageData for PARAM_REQUEST_READ_DATA {
190191 __input : & [u8 ],
191192 ) - > Result < Self , ::mavlink_core::error ::ParserError > {
192193 let avail_len = __input.len();
193- let mut payload_buf = [0; Self:: ENCODED_LEN ] ;
194+ let mut payload_buf;
194195 let mut buf = if avail_len < Self ::ENCODED_LEN {
196+ payload_buf = [0 ; Self ::ENCODED_LEN ];
195197 payload_buf[0..avail_len].copy_from_slice(__input );
196198 Bytes: :new (&payload_buf )
197199 } else {
@@ -286,8 +288,9 @@ impl MessageData for PARAM_SET_DATA {
286288 __input : & [u8 ],
287289 ) - > Result < Self , ::mavlink_core::error ::ParserError > {
288290 let avail_len = __input.len();
289- let mut payload_buf = [0; Self:: ENCODED_LEN ] ;
291+ let mut payload_buf;
290292 let mut buf = if avail_len < Self ::ENCODED_LEN {
293+ payload_buf = [0 ; Self ::ENCODED_LEN ];
291294 payload_buf[0..avail_len].copy_from_slice(__input );
292295 Bytes: :new (&payload_buf )
293296 } else {
@@ -389,8 +392,9 @@ impl MessageData for PARAM_VALUE_DATA {
389392 __input : & [u8 ],
390393 ) - > Result < Self , ::mavlink_core::error ::ParserError > {
391394 let avail_len = __input.len();
392- let mut payload_buf = [0; Self:: ENCODED_LEN ] ;
395+ let mut payload_buf;
393396 let mut buf = if avail_len < Self ::ENCODED_LEN {
397+ payload_buf = [0 ; Self ::ENCODED_LEN ];
394398 payload_buf[0..avail_len].copy_from_slice(__input );
395399 Bytes: :new (&payload_buf )
396400 } else {
0 commit comments