Skip to content

Commit

Permalink
Revert "Start Probe nr 1"
Browse files Browse the repository at this point in the history
This reverts commit c1193dd.
  • Loading branch information
erisasala7 committed Aug 21, 2019
1 parent 1b019aa commit 59b6a73
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 32 deletions.
8 changes: 1 addition & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
function handlePlay(event) {
let delimiter_microbit = ":";
Blockly.JavaScript.addReservedWords('code');
var start_code_value = Blockly.JavaScript.addReservedWords('start');
var code = "Gb16" + delimiter_microbit + Blockly.JavaScript.workspaceToCode(Blockly.getMainWorkspace());
var commands = code.split(delimiter_microbit);
var max_length = 19;
Expand All @@ -91,10 +90,8 @@
}
commands[i] += delimiter_microbit;
console.log(commands[i]);
}
if(start_code_value == "1")
}
return sendData(commands);
else prompt("Bitte Start einfügen","");
}

/* Menu functions */
Expand Down Expand Up @@ -266,9 +263,6 @@
<block type="repetition">
<field name="repetition">1</field>
</block>
<block type="start">
<field name="start">1</field>
</block>
</category>
</xml>

Expand Down
25 changes: 0 additions & 25 deletions scripts/R4Gblocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,29 +422,4 @@ Blockly.JavaScript['repetition'] = function (block) {
code += statements_repeat;
}
return code;
};

//Start
Blockly.Blocks['start'] = {
init: function () {
this.appendDummyInput()
.appendField("Starte")


this.appendStatementInput("")


this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setColour(120);
this.setTooltip("");
this.setHelpUrl("");
}
};



Blockly.JavaScript['start'] = function (block) {
var start = "1";
return start;
};

0 comments on commit 59b6a73

Please sign in to comment.