X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=low-can-binding%2Fcan%2Fcan-bus.cpp;h=9a98547b72f99bdde97cdf41046f89d25cb44311;hb=6faef2305955b025c3cf1cfaf17a6aa073727c24;hp=d5ad485fe4e0b217e20ac6500e539c9871b4a6dd;hpb=4af423a2a09683acf0a9ad1e0a77bc45c2c843d9;p=apps%2Fagl-service-can-low-level.git diff --git a/low-can-binding/can/can-bus.cpp b/low-can-binding/can/can-bus.cpp index d5ad485f..9a98547b 100644 --- a/low-can-binding/can/can-bus.cpp +++ b/low-can-binding/can/can-bus.cpp @@ -56,7 +56,7 @@ bool can_bus_t::apply_filter(const openxc_VehicleMessage& vehicle_message, std:: 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; }