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

arrays coming out invalid #159

Open
kittenkong opened this issue Sep 23, 2019 · 0 comments
Open

arrays coming out invalid #159

kittenkong opened this issue Sep 23, 2019 · 0 comments

Comments

@kittenkong
Copy link

kittenkong commented Sep 23, 2019

``int[3] adf;

void setup() {
}

void loop() {
adf = {0, 1, 2};

}``

This is the code generated with just a variable initialized as an array with 3 integers entered. It's invalid Arduino code and won't compile. It should come out as below.

``int adf[3] = {0, 1, 2};

void setup() {
}

void loop() {

}``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants