aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/can/message/message.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-12-19 11:29:07 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2020-01-09 16:25:36 +0100
commit2dcfd4d0faa9699a4a32af1c39be674dc2856f41 (patch)
treeb45f6ace6d4a14cbaeaa7859a5ada10c1e0ac0e0 /low-can-binding/can/message/message.cpp
parentb6bc89e63ee24c4e5ec1559d7390da90201ff9cd (diff)
message: Fix copying all bytes but the last one
Change-Id: I8c2fce0f8080f213fda26a054f691ba3ed457bda Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/can/message/message.cpp')
-rw-r--r--low-can-binding/can/message/message.cpp22
1 files changed, 0 insertions, 22 deletions
diff --git a/low-can-binding/can/message/message.cpp b/low-can-binding/can/message/message.cpp
index 56e9379f..c714f506 100644
--- a/low-can-binding/can/message/message.cpp
+++ b/low-can-binding/can/message/message.cpp
@@ -76,28 +76,6 @@ const uint8_t* message_t::get_data() const
return data_.data();
}
-
-///
-/// @brief Retrieve data_ member value.
-///
-/// @return pointer to the first element
-/// of class member data_
-///
-const std::vector<uint8_t> message_t::get_data_vector(int start, int end) const
-{
- if ( start > length_ || end > length_ )
- {
- AFB_ERROR("Error index to get data vector, [%d-%d] - for length %d", start, end, length_);
- return data_;
- }
-
- std::vector<uint8_t>::const_iterator first = data_.begin() + start;
- std::vector<uint8_t>::const_iterator last = data_.begin() + end;
- std::vector<uint8_t> ret(first, last);
-
- return ret;
-}
-
///
/// @brief Retrieve data_ member whole vector
///