gasolin/BlocklyDuino — pull request #5 by mjhoy (2014-01-24 12:44:26+00:00)
Title: do not remove parentheses inside value parameters

I came across this bug when I tried to do this:

![screen shot 2014-01-24 at 7 28 37 am](https://f.cloud.github.com/assets/106337/1994704/71a37940-84f4-11e3-91c5-c4b584189b2f.png)

This generated the following code:

analogWrite(A0, analogRead(A0 / 4));

which is obviously wrong, I do not want to _read_ from the PIN `A0 / 4`, which is nonsensical; I want to read from A0 and divide the result by 4. (err, and in the actual code I was not reading from the same pin I was writing to).

The culprit seems to be removing the parentheses from "value" parameters, which happens in several arduino functions. (The same thing happens in the delay function, for example). Removing these fixes the problem, and I see no reason to remove the parentheses.