add some delay and fix type limit

This commit is contained in:
felixerdy
2020-11-05 20:57:17 +01:00
parent b4a59d3875
commit 5621fdc620
2 changed files with 9 additions and 3 deletions
@@ -122,6 +122,11 @@ Blockly.Blocks['sensebox_send_lora_sensor_value'] = {
Blockly.Blocks['sensebox_lora_ttn_mapper'] = {
init: function (block) {
this.setColour(getColour().sensebox);
this.appendDummyInput()
.setAlign(Blockly.ALIGN_RIGHT)
.appendField("Fix Type Limit")
.appendField(new Blockly.FieldDropdown([["0", "0"], ["1", "1"], ["2", "2"], ["3", "3"]].reverse()), "dropdown")
// reverse() because i want 3 be be at first and i'm to lazy to write the array again
this.appendDummyInput()
.appendField("TTN Mapper")
this.appendValueInput('Latitude')