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
all: format typo
[apps/agl-service-can-low-level.git]
/
low-can-binding
/
utils
/
openxc-utils.cpp
diff --git
a/low-can-binding/utils/openxc-utils.cpp
b/low-can-binding/utils/openxc-utils.cpp
index
db19d1f
..
b88c45d
100644
(file)
--- a/
low-can-binding/utils/openxc-utils.cpp
+++ b/
low-can-binding/utils/openxc-utils.cpp
@@
-237,9
+237,7
@@
const openxc_DynamicField build_DynamicField(std::vector<uint8_t> &array)
for(int i=0;i<size;i++)
for(int i=0;i<size;i++)
- {
d.bytes_value[i] = array[i];
d.bytes_value[i] = array[i];
- }
return d;
}
return d;
}
@@
-403,7
+401,7
@@
void jsonify_DynamicField(const openxc_DynamicField& field, json_object* value)
}
else if(field.has_bytes_value)
{
}
else if(field.has_bytes_value)
{
- std::string s = converter_t::to_hex(field.bytes_value,field.length_array);
+ std::string s = converter_t::to_hex(field.bytes_value,
field.length_array);
json_object_object_add(value, "value", json_object_new_string(s.c_str()));
}
json_object_object_add(value, "value", json_object_new_string(s.c_str()));
}