mirror of
https://github.com/nasa/fpp.git
synced 2025-12-11 03:05:32 -06:00
Revise topology code gen for port invocation
This commit is contained in:
parent
b452424253
commit
7e672fa6b5
@ -29,8 +29,12 @@ case class TopComponentCppWriter (
|
||||
def writeIsConnectedFns =
|
||||
sortedPortNameList.flatMap(writeIsConnectedFnForPort)
|
||||
|
||||
def writeOutFns =
|
||||
sortedPortNameList.flatMap(writeOutFnForPort)
|
||||
def writeOutFns = {
|
||||
val nameList = sortedPortNameList.filter {
|
||||
case (n, _) => invokerRequired(component.portMap(n))
|
||||
}
|
||||
nameList.flatMap(writeOutFnForPort)
|
||||
}
|
||||
|
||||
private def componentInstanceMapToSortedList(
|
||||
componentInstanceMap: TopComponents.ComponentInstanceMap
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user