Skip to content
Snippets Groups Projects
Commit bb72c928 authored by Anian Bühler's avatar Anian Bühler
Browse files

fixed wrong return in #define-Block

parent 488e8738
No related branches found
No related tags found
1 merge request!1dev_prefereences to master
......@@ -37,7 +37,7 @@ public class DefineBlock extends TranslatorBlock
if (variableName.contains(newMarker)){
variableName = variableName.replaceAll(regex, ""); //remove the "new" Tag after declaration
translator.addNumberVariable(variableName, variableName);
translator.addDefinitionCommand("#define " + variableName + " " + value + ";");
translator.addDefinitionCommand("#define " + variableName + " " + value);
}else {
throw new BlockException(blockId, uiMessageBundle.getString("ardublock.error_msg.number_const_write"));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment