Blockly-at-rduino icon indicating copy to clipboard operation
Blockly-at-rduino copied to clipboard

arrays coming out invalid

Open realrobotshk opened this issue 6 years ago • 0 comments

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

}``

realrobotshk avatar Sep 23 '19 15:09 realrobotshk