summaryrefslogtreecommitdiffstats
path: root/low-can-binding/can
diff options
context:
space:
mode:
Diffstat (limited to 'low-can-binding/can')
-rw-r--r--low-can-binding/can/can-encoder.cpp2
1 files changed, 1 insertions, 1 deletions
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<signal_t> sig, std::vector<uint8_t>
int j=0;
for(int i=0;i<new_bit_size;i++)
{
- int mask = 1 << ((i%8)+new_start_bit);
+ int mask = 0x80 >> ((i%8)+new_start_bit);
uint8_t mask_v = 0;
if(mask > 255)