small fixes

This commit is contained in:
Mario
2020-11-05 14:38:38 +01:00
parent 8e2deed1d5
commit 5da3006e75
6 changed files with 53 additions and 36 deletions
@@ -68,15 +68,19 @@ Blockly.Arduino['procedures_defreturn'] = function (block: Block | any) {
};
function translateType(type) {
console.log(type);
switch (type) {
case 'Number':
return 'double';
case 'int':
return 'int';
case 'String':
return 'String';
case 'Boolean':
return 'boolean';
case 'void':
return 'void';
case 'boolean':
return 'boolean';
case 'float':
return 'float'
default:
throw new Error('Invalid Parameter Type');
}