Commit 1f3b768c authored by Carlos Pereira Atencio's avatar Carlos Pereira Atencio Committed by carlospamg

Updated main Arduino generator file and text

  Text is not finished, but most blocks are usable, so it will be parked for a while until the other blocks are finished.
parent ab75f705
......@@ -203,7 +203,7 @@ Blockly.Arduino.scrub_ = function(block, code) {
// Collect comment for this block.
var comment = block.getCommentText();
if (comment) {
commentCode += Blockly.Generator.prefixLines(comment, '// ') + '\n';
commentCode += this.prefixLines(comment, '// ') + '\n';
}
// Collect comments for all value arguments.
// Don't collect comments for nested statements.
......@@ -211,9 +211,9 @@ Blockly.Arduino.scrub_ = function(block, code) {
if (block.inputList[x].type == Blockly.INPUT_VALUE) {
var childBlock = block.inputList[x].connection.targetBlock();
if (childBlock) {
var comment = Blockly.Generator.allNestedComments(childBlock);
var comment = this.allNestedComments(childBlock);
if (comment) {
commentCode += Blockly.Generator.prefixLines(comment, '// ');
commentCode += this.prefixLines(comment, '// ');
}
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment