Skip to content
Snippets Groups Projects
Commit 5cdc66ee authored by Rodrigo Cortes's avatar Rodrigo Cortes
Browse files

Fixed bug related to code generation when no AMS cluster was present.

parent c40207b4
No related branches found
No related tags found
1 merge request!72Syscams
......@@ -80,11 +80,16 @@ public class Gpio2VciAddress {
code += "} ";
}
}
code += "else {\n";
code += "printf(\"ERROR getting address for cluster: \\\"%s\\\"\\n\", name);\n";
code += "return -1;\n";
code += "}\n}";
if (TopCellGenerator.avatardd.getNbAmsCluster() > 0 ) {
code += "else {\n";
code += "printf(\"ERROR getting address for cluster: \\\"%s\\\"\\n\", name);\n";
code += "return -1;\n";
code += "}\n}";
} else {
code += "printf(\"ERROR getting address for cluster: \\\"%s\\\"\\n\", name);\n";
code += "return -1;\n";
code += "}";
}
}
public String getAddressCode() {
......
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