fix end block error in esp8266
@@ -162,6 +162,10 @@ Blockly.Arduino.controls_mstimer2_stop = function () {
};
Blockly.Arduino.controls_end_program = function () {
+ var board_type = JSFuncs.getPlatform();
+ if (board_type.match(RegExp(/ESP8266/)))
+ return 'while(true) delay(1000);\n';
+ else
return 'while(true);\n';
};
Blockly.Arduino.controls_interrupts = function () {
