Skip to content

Commit eb3af92

Browse files
fix: check isscheduled in generate_control_function instead of iscomplete
1 parent 283b34f commit eb3af92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inputoutput.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ function generate_control_function(sys::AbstractSystem, inputs = unbound_inputs(
200200
eval_module = @__MODULE__,
201201
kwargs...)
202202
isempty(inputs) && @warn("No unbound inputs were found in system.")
203-
if !iscomplete(sys)
203+
if !isscheduled(sys)
204204
sys = mtkcompile(sys; inputs, disturbance_inputs)
205205
end
206206
if disturbance_inputs !== nothing

0 commit comments

Comments
 (0)