Commit 2b95dda0 authored by K-H-Ismail's avatar K-H-Ismail Committed by Gauthier Quesnel
Browse files

core: change event on cross model

parent e5624bd7
......@@ -126,4 +126,5 @@ if (NOT BUILD_SHARED_LIBS)
irritator_add_test(simulations test/simulations.cpp)
irritator_add_test(auditory test/auditory.cpp)
irritator_add_test(benchmark benchmark/benchmark.cpp)
irritator_add_test(benchmark2 benchmark/benchmark2.cpp)
endif ()
......@@ -3301,7 +3301,7 @@ struct integrator
if(up_threshold < val)
{
return reset_value;
return up_threshold;
}
else if (down_threshold > val)
{
......@@ -4664,6 +4664,7 @@ struct cross
{
bool have_message = false;
bool have_message_value = false;
event = 0.0;
for (const auto& msg : input_ports.get(x[port_threshold]).messages) {
irt_return_if_fail(msg.type == value_type::real_64,
......
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