aboutsummaryrefslogtreecommitdiffstats
path: root/src/can-message.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/can-message.cpp')
-rw-r--r--src/can-message.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/can-message.cpp b/src/can-message.cpp
index 39059430..5d01880b 100644
--- a/src/can-message.cpp
+++ b/src/can-message.cpp
@@ -152,6 +152,7 @@ void can_message_t::set_data(const __u8* new_data)
{
int i;
+ data_.clear();
/* maxdlen_ is now set at CAN_MAX_DLEN or CANFD_MAX_DLEN, respectively 8 and 64 bytes*/
for(i=0;i<maxdlen_;i++)
{