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

Merge functions set_led #34

Merged

Conversation

RaulTrombin
Copy link
Member

*Needs Merge & Rebase:

Merge set_led methods to a single one.

Corrects the open milestone issue:

Copy link
Member

@joaoantoniocardoso joaoantoniocardoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems okay, just minor observations.

src/lib.rs Outdated
for pin in self.as_mut_array().iter_mut() {
pin.set_value(0).expect("Error: Set led value to 0");
pin.set_value((!state).into())
.unwrap_or_else(|_| panic!("Error: Set LED value to {}", state));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

panic!("Error: Set LED value to {state}");

@@ -682,22 +681,14 @@ impl Navigator {
///
/// nav.init();
/// loop {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't there a 'no_run' statement missing here?

@patrickelectric
Copy link
Member

@RaulTrombin please rebase.

Copy link
Member

@patrickelectric patrickelectric left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs rebase

@patrickelectric patrickelectric merged commit d7f59ef into bluerobotics:master Jul 13, 2023
2 checks passed
@RaulTrombin RaulTrombin deleted the merge_functions_set_led branch July 13, 2023 19:49
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

Successfully merging this pull request may close these issues.

3 participants