From 4780c23547407f6bafb7e14fb70aaeeca0a1257d Mon Sep 17 00:00:00 2001 From: Scott Murray Date: Tue, 3 Dec 2019 17:17:07 -0500 Subject: Fix filter bitmask generation Fix filter bitmask generation in encoder_t::encode_data; the mask bits need to be left-aligned in each byte, not right-aligned. Bug-AGL: SPEC-3013 Signed-off-by: Scott Murray Change-Id: Ie084f81e3d8c06e69b5bb7562055187395099ac7 --- low-can-binding/can/can-encoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'low-can-binding/can') diff --git a/low-can-binding/can/can-encoder.cpp b/low-can-binding/can/can-encoder.cpp index 37a7b246..2d836cf9 100644 --- a/low-can-binding/can/can-encoder.cpp +++ b/low-can-binding/can/can-encoder.cpp @@ -93,7 +93,7 @@ void encoder_t::encode_data(std::shared_ptr sig, std::vector int j=0; for(int i=0;i> ((i%8)+new_start_bit); uint8_t mask_v = 0; if(mask > 255) -- cgit 1.2.3-korg