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

version with initializer list #2

Open
wants to merge 6 commits into
base: added_valve_class_restructuring
Choose a base branch
from

Conversation

Ippyb
Copy link
Collaborator

@Ippyb Ippyb commented Oct 22, 2021

No description provided.

_servopin(0),
_counter(0),
_servo(s1),
_buttonstate(LOW),
Copy link

Choose a reason for hiding this comment

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

No trailing comma

Copy link
Collaborator

@Ayeeti Ayeeti left a comment

Choose a reason for hiding this comment

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

Code has been tested and works.

_buttonpin(0),
_servopin(0),
_counter(0),
_servo(s1),
Copy link

Choose a reason for hiding this comment

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

I don't like how we have to pass in an object here, but this has more to do with our object structure than with the initializer list. Before we change this, we need to consider how those structural changes will affect the rest of our code.

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