Skip to content

Conversation

burgerkingorama
Copy link
Contributor

See #66.
Sorry for recreating the pull request but the first one was started from the wrong branch.

@Hadatko Hadatko added the bug label Dec 28, 2019
@MichalPrincNXP MichalPrincNXP self-requested a review August 4, 2020 14:24
@MichalPrincNXP MichalPrincNXP changed the base branch from master to develop August 4, 2020 14:29
Copy link
Member

@MichalPrincNXP MichalPrincNXP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @burgerkingorama
your PR looks good but several changes are required before the merge. Except of changes in c_coders.template file itself, the erpc_basic_codec.cpp needs to be modified to avoid BasicCodec::writeBinary causing kErpcStatus_MemoryError error (due to null pointer in value). It should be changed like this:
image
Also note that I have changed the base branch of this pull request to "develop".
As for list and binary unit tests update (proposed by @Hadatko ) this will be done by me after the PR merge.
Thank you for the effort.

{% endif %}
uint8_t * {$info.dataTemp};
codec->readBinary(&{$info.sizeTemp}, &{$info.dataTemp});
if({$info.sizeTemp})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • if statements should have one space char between "if" and "("
  • the added 2 lines should be moved 3 lines bellow (attaching the expected content)
    c_coders.zip

@Hadatko
Copy link
Member

Hadatko commented Jan 21, 2022

kErpcStatus_MemoryError

I would rather update writeData to use if condition inside, not in writeBinary

@Hadatko Hadatko linked an issue Feb 4, 2022 that may be closed by this pull request
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
@Hadatko
Copy link
Member

Hadatko commented Feb 4, 2022

@MichalPrincNXP What do you think about my current changes?

Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
Copy link
Member

@Hadatko Hadatko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After mine changes i thing it is ready for merge.

@Hadatko Hadatko added this to the 1.9.1 milestone Feb 4, 2022
Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
@MichalPrincNXP
Copy link
Member

After mine changes i thing it is ready for merge.

Dusan, looks good but I would also prefer to have execution tests updates to cover this particular case (not only the erpcgen test). Could you please update them yet (binary and lists I guess)?

Signed-off-by: Cervenka Dusan <cervenka@acrios.com>
@Hadatko
Copy link
Member

Hadatko commented Feb 16, 2022

We cannot add test for binary type (we have restriction to use out and inout type in one application for list, binary,... types). But i created test for in and out for list type. We could do probably same for binary but the test would be present in other test scope than test_binary

@MichalPrincNXP MichalPrincNXP merged commit 92949df into EmbeddedRPC:develop Feb 28, 2022
@MichalPrincNXP
Copy link
Member

Thank you very much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

Codec issue when transferring lists with size 0
3 participants