Remove in function convert_from_addr, the variable flags was not used
[apps/agl-service-can-low-level.git] / low-can-binding / can / message / j1939-message.cpp
index ec65cba..432a139 100644 (file)
@@ -98,7 +98,6 @@ std::shared_ptr<j1939_message_t> j1939_message_t::convert_from_addr(struct socka
 {
        int i;
        uint32_t length = 0;
-       uint32_t flags;
        std::vector<uint8_t> data_vector;
 
        if(nbytes > J1939_MAX_DLEN)
@@ -159,6 +158,12 @@ uint32_t j1939_message_t::get_id() const
        return get_pgn();
 }
 
+void j1939_message_t::set_id(const canid_t id)
+{
+       pgn_ = id;
+}
+
+
 /**
  * @brief Return the sockname of the message
  *