Skip to content

arrays coming out invalid #159

@realrobotshk

Description

@realrobotshk

``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() {

}``

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions