Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix errors with "inout apdu: Apdu" for latest Spicy release #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mmguero
Copy link

@mmguero mmguero commented Sep 11, 2024

With the latest spicy release, these errors are generated:

[error] iec104.spicy:1214:5-1214:38: type expects value_ref<Apdu> for parameter 1, but receives value_ref<const Apdu>
[error] iec104.spicy:1215:5-1215:62: type expects value_ref<Apdu> for parameter 1, but receives value_ref<const Apdu>
[error] iec104.spicy:1216:5-1216:62: type expects value_ref<Apdu> for parameter 1, but receives value_ref<const Apdu>

The fix is that the parent Ctrl unit needs to also have inout on the apdu argument.

[error] iec104.spicy:1214:5-1214:38: type expects value_ref<Apdu> for parameter 1, but receives value_ref<const Apdu>
[error] iec104.spicy:1215:5-1215:62: type expects value_ref<Apdu> for parameter 1, but receives value_ref<const Apdu>
[error] iec104.spicy:1216:5-1216:62: type expects value_ref<Apdu> for parameter 1, but receives value_ref<const Apdu>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant