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

cyclic_data example does not compile #47

Open
askuric opened this issue Apr 25, 2024 · 0 comments
Open

cyclic_data example does not compile #47

askuric opened this issue Apr 25, 2024 · 0 comments

Comments

@askuric
Copy link

askuric commented Apr 25, 2024

Hi guys,

I'm having trouble compiling the cycling_data example.
Here is the message:

error[E0609]: no field `index` on type `&Pdo`
   --> src/bin/cyclic_data1.rs:125:39
    |
125 |                 idx: PdoIdx::from(pdo.index),
    |                                       ^^^^^ unknown field
    |
    = note: available fields are: `sm`, `fixed`, `mandatory`, `idx`, `name`, `entries`

error[E0609]: no field `index` on type `&PdoEntry`
   --> src/bin/cyclic_data1.rs:132:46
    |
132 | ...                   idx: Idx::from(e.index),
    |                                        ^^^^^ unknown field
    |
    = note: available fields are: `entry_idx`, `bit_len`, `name`, `data_type`

error[E0609]: no field `sub_index` on type `&PdoEntry`
   --> src/bin/cyclic_data1.rs:133:53
    |
133 | ...                   sub_idx: SubIdx::from(e.sub_index.unwrap_or(1) as u8),
    |                                               ^^^^^^^^^ unknown field

Could this be a problem of my configuration or is this due to some API change?
Thanks

@askuric askuric changed the title cyclic_data example no longer compiles cyclic_data example does not compile Apr 25, 2024
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

No branches or pull requests

1 participant