-
Notifications
You must be signed in to change notification settings - Fork 1
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
chore: fix lists compile #136
Conversation
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.
The getList() method in list manager does not return a copy, so updating the name property on this will change the name globally, if this is the desired behaviour it would probably be better to implement this on the addlist method directly for consistency, if not, a simple const name = list.name.replace will do
src/generators/arduino/lists.ts
Outdated
@@ -49,13 +54,15 @@ function getCodeGenerators(arduino: Arduino) { | |||
const index = | |||
arduino.valueToCode(block, "INDEX", arduino.ORDER_ATOMIC) || "0"; | |||
|
|||
list.name = list.name.replace(" ", "_"); |
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.
Forgot one
No description provided.