Skip to content

panic for constants #241

Open
Open
@Frank-Buss

Description

@Frank-Buss

I have this CDDL file:

cmd_start = 0
cmd_stop = 1

my_command = [
    command: cmd_start/cmd_stop
]

This works with zcbor.py, but with cddl-codegen, I get this output:

thread 'main' panicked at src/intermediate.rs:1748:31:
should not expose Fixed type in member, only needed for serializaiton: Fixed(Uint(0))
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I think it is valid CDDL, but maybe it is some edge case. Would be also ok if there is a way to write it differently, and if this works then with zcbor as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions