Timer compiler error, mBlock 3.4.9


Just installed 3.4.9, and it appears that the timer block causes a compiler error.

The ‘lastTime’ and ‘currentTime’ variables get defined twice.

I can fix this by removing the duplicate variable declarations in the Arduino editor, but without editing, the compiled scratch code fails to upload.

Also, the mBlock timer still uses seconds as its unit instead of ms, as noted in this thread: When use "Timer"feature, the mBlock 3.4.5 something wrong


See my reply to your other thread. :slight_smile: