Skip to content

Ambitious error message in receive() #40

@ErikBuer

Description

@ErikBuer

I'm working on getting an example of a receiver up and running, and get the following error message:

ERROR: ArgumentError: Signal length must be close to 1ms and above 4ms. Use 8000.0 samples instead.

This comes from the receive() function.

isapprox(signal_duration, 4u"ms"; atol = 1u"μs") && signal_duration >= 4u"ms" || throw(
        ArgumentError(
            "Signal length must be close to 1ms and above 4ms. Use $(ceil(4u"ms" * sampling_freq)) samples instead.",
        ),
    )

The message is a bit ambiguous and could use some clarification.

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