update output

This commit is contained in:
Mario Pesch 2023-05-08 14:17:18 +02:00
parent e685724a1f
commit 0f0bd2aea4

View File

@ -611,11 +611,8 @@ Blockly.Blocks["sensebox_gps_bn880"] = {
selectedBoard().serialSensors),
"serial"
);
if (this.getFieldValue("dropdown") == "timestamp") {
this.setOutput(true, Types.CHARACTER.typeName);
} else {
this.setOutput(true, Types.NUMBER.typeName);
}
this.setOutput(true);
this.setColour(getColour().sensebox);
this.setTooltip(Blockly.Msg.senseBox_gps_tooltip);
},