Skip to content
Snippets Groups Projects
Commit d3ccb524 authored by Lucas Stratmann's avatar Lucas Stratmann
Browse files

Bugfixes

parent 157e375d
No related branches found
No related tags found
No related merge requests found
......@@ -142,7 +142,7 @@ public class Arduino {
public SimCodeFunction getFunction(String name) {
for (SimCodeFunction function : functions) {
if (function.getName() == name) {
if (function.getName().equals(name)) {
return function;
}
......
......@@ -28,7 +28,7 @@ public class CodeForCount extends SimCode {
varname = _varname;
codeblocks = _blocks;
}
//TODO For/While Mit Vars ausrüsten
@Override
public SimCode run(Arduino _arduino, SimCodeFunction functionHead) {
// TODO delete Var after completion
......
......@@ -24,6 +24,7 @@ public class CodeBoolGet extends SimCode {
@Override
public SimTypeBool run(Arduino _arduino, SimCodeFunction functionHead) {
//FIXME Für alle Get und Set müssen die oberligenenden "Stackschichten" berücksichtigt werden.
return (SimTypeBool) functionHead.readVariable(var.run(_arduino, functionHead).toString());
}
......
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