Code Review
/
apps
/
agl-service-can-low-level.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
can: clean and format
[apps/agl-service-can-low-level.git]
/
low-can-binding
/
can
/
can-encoder.cpp
diff --git
a/low-can-binding/can/can-encoder.cpp
b/low-can-binding/can/can-encoder.cpp
index
37a7b24
..
2d836cf
100644
(file)
--- 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 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)
uint8_t mask_v = 0;
if(mask > 255)