Change-Id: I7d3eccc2d4b99d543b669c7b3c8d7a38670d860f
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
float min = std::isnan(can_subscription->get_min()) ? -INFINITY : can_subscription->get_min();
float max = std::isnan(can_subscription->get_max()) ? INFINITY : can_subscription->get_max();
double value = get_numerical_from_DynamicField(vehicle_message);
- send = (value < min && value > max) ? false : true;
+ send = (value < min || value > max) ? false : true;
}
return send;
}