-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: added_valve_class_restructuring
Are you sure you want to change the base?
version with initializer list #2
Conversation
_servopin(0), | ||
_counter(0), | ||
_servo(s1), | ||
_buttonstate(LOW), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No trailing comma
There was a problem hiding this 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), |
There was a problem hiding this comment.
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.
No description provided.