Commit f162e24d authored by Martin Eisenmann's avatar Martin Eisenmann

Generator now respects port type of remote ports

Signed-off-by: Martin Eisenmann's avatarEisenmann <eisenmann@fortiss.org>
parent 627fb5a5
......@@ -3,7 +3,7 @@ CanConnectorGeneratorExtension.java 900c836414d63ccf2cba904b396e4d5b2efe51a5 YEL
CanTransmissionCatalog.java f678cb0f16d4ba46a0f5ae5dd35b569c1211f499 YELLOW
ConsoleOutputGeneratorExtension.java 1246aa81a2865a798207f13e66bfeebc8fbf0cb8 YELLOW
MainGenerator.java f241e63e8ebb6a3ecc955fe503369dde1d4b89c3 YELLOW
MultiUnitMainGenerator.java 7bd01a961598265014a39b44030e0fd7dfadcc1e RED
MultiUnitMainGenerator.java 11c78dc068c5446b3e6b92ca688549b065f95071 RED
PWMActuatorGeneratorExtension.java a4925aac8b6b7d650ef60fca32b18bba894c3b03 YELLOW
RaspberryPIGeneratorExtension.java e47fb8e892354505fce0e388fd362d789f686fb6 YELLOW
SingleUnitMainGenerator.java 772c368ade02ebc703a8fc8f329b6748bcce72be YELLOW
......@@ -288,7 +288,6 @@ class MultiUnitMainGenerator extends MainGenerator {
sb.append(createReadCode(rec, inport));
} else {
// local remote input ports
// FIXME: port type
sb.append("\tcopy_from_input_port_").append(getTypePostfix(inport));
sb.append("(").append(af3PortName(inport));
sb.append(", &").append(novalPortName(inport));
......@@ -303,8 +302,8 @@ class MultiUnitMainGenerator extends MainGenerator {
sb.append(createWriteCode(trn, outport));
} else {
// local or remote output port
// FIXME: port type
sb.append("\tcopy_to_output_port_int(&").append(novalPortName(outport));
sb.append("\tcopy_to_output_port_").append(getTypePostfix(outport)).append("(&")
.append(novalPortName(outport));
sb.append(", &").append(identifierName(outport));
sb.append(", ").append(af3PortName(outport)).append(");\n");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment