Snap4Arduino icon indicating copy to clipboard operation
Snap4Arduino copied to clipboard

Translatable project generates multiple unneeded "int i = 0;"

Open ToonTalk opened this issue 7 years ago • 0 comments

The following

image

generates

int i = 0; int i = 0;

void setup() { for (byte i = 0; i < TOTAL_PINS; i++) { servoPinMap[i] = 255; } // Auto-generated by Snap4Arduino. Do not remove.

for (int i = 0; i < 10; i++) {

} for (int i = 0; i < 10; i++) {

} }

which doesn't compile due to the unneeded "int i = 0;" statements

ToonTalk avatar Oct 03 '17 16:10 ToonTalk