diff --git a/TiaCodegen/Commands/Comparisons/InRangeCall.cs b/TiaCodegen/Commands/Comparisons/InRangeCall.cs index 5f4ae01..cd15239 100644 --- a/TiaCodegen/Commands/Comparisons/InRangeCall.cs +++ b/TiaCodegen/Commands/Comparisons/InRangeCall.cs @@ -17,7 +17,7 @@ public InRangeCall( DisableEno = false; Interface["min"] = new IOperationOrSignalDirectionWrapper(min, Direction.Input); Interface["in"] = new IOperationOrSignalDirectionWrapper(@in, Direction.Input); - Interface["max"] = new IOperationOrSignalDirectionWrapper(max, Direction.Output); + Interface["max"] = new IOperationOrSignalDirectionWrapper(max, Direction.Input); Interface["out"] = new IOperationOrSignalDirectionWrapper(@out, Direction.Output); Children.AddRange(Interface.Values.Where(x => x.OperationOrSignal != null).Select(x => x.OperationOrSignal)); diff --git a/TiaCodegen/Commands/Comparisons/OutRangeCall.cs b/TiaCodegen/Commands/Comparisons/OutRangeCall.cs index 51fb5ec..a50f984 100644 --- a/TiaCodegen/Commands/Comparisons/OutRangeCall.cs +++ b/TiaCodegen/Commands/Comparisons/OutRangeCall.cs @@ -17,7 +17,7 @@ public OutRangeCall( DisableEno = false; Interface["min"] = new IOperationOrSignalDirectionWrapper(min, Direction.Input); Interface["in"] = new IOperationOrSignalDirectionWrapper(@in, Direction.Input); - Interface["max"] = new IOperationOrSignalDirectionWrapper(max, Direction.Output); + Interface["max"] = new IOperationOrSignalDirectionWrapper(max, Direction.Input); Interface["out"] = new IOperationOrSignalDirectionWrapper(@out, Direction.Output); Children.AddRange(Interface.Values.Where(x => x.OperationOrSignal != null).Select(x => x.OperationOrSignal));