Skip to content

Ambitious error message in receive() #40

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

Open
ErikBuer opened this issue Feb 11, 2025 · 0 comments
Open

Ambitious error message in receive() #40

ErikBuer opened this issue Feb 11, 2025 · 0 comments

Comments

@ErikBuer
Copy link

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.

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