Make low-can use afb-genskel by default
[apps/agl-service-can-low-level.git] / low-can-binding / can / can-bus.cpp
index d5ad485..9a98547 100644 (file)
@@ -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;
 }