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

serial.redirect() returns a value #6048

Open
muzkr opened this issue Dec 23, 2024 · 0 comments
Open

serial.redirect() returns a value #6048

muzkr opened this issue Dec 23, 2024 · 0 comments

Comments

@muzkr
Copy link

muzkr commented Dec 23, 2024

This is a feature request.

Is your feature request related to a problem? Please describe.

The current implementation of serial.redirect() silently discards the return value of uBit.serial.redirect():

uBit.serial.redirect(*getPin(tx), *getPin(rx));

Describe the solution you'd like

serial.redirect() returns a boolean or integer code to indicate the successfulness of redirection.

Describe alternatives you've considered

Make it clear in the comments that there is a possibility that the redirection will be rejected, and under what circumstances.

Additional context

None.

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