Skip to content

Commit 6966622

Browse files
Merge pull request #89 from aasmune/issue-88
Fixed bug introduced in last commit where an undeclared variable were…
2 parents 16e4f34 + 03bb805 commit 6966622

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dsdl_compiler/libcanard_dsdl_compiler/code_type_template.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ int32_t ${type_name}_decode_internal(
317317
%elif f.type_category == t.CATEGORY_COMPOUND:
318318

319319
// Compound
320-
offset = ${f.cpp_type}_decode_internal(transfer, transfer_len, &dest->${f.name}, dyn_arr_buf, offset);
320+
offset = ${f.cpp_type}_decode_internal(transfer, payload_len, &dest->${f.name}, dyn_arr_buf, offset);
321321
if (offset < 0)
322322
{
323323
ret = offset;

0 commit comments

Comments
 (0)