Commit 40470d8d authored by carlosperate's avatar carlosperate
parents a3b79e47 82def68a
...@@ -116,3 +116,19 @@ Blockly.Blocks['infinite_loop'] = { ...@@ -116,3 +116,19 @@ Blockly.Blocks['infinite_loop'] = {
this.setTooltip('Wait indefinitely, stopping the program.'); this.setTooltip('Wait indefinitely, stopping the program.');
} }
}; };
Blockly.Blocks['infinite_loop'] = {
/**
* Waits forever, end of program.
* @this Blockly.Block
*/
init: function() {
this.setHelpUrl('');
this.setColour(Blockly.Blocks.Arduino.time.HUE);
this.appendDummyInput()
.appendField("wait forever (end program)");
this.setInputsInline(true);
this.setPreviousStatement(true);
this.setTooltip('Wait indefinitely, stopping the program.');
}
};
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