Reordering class method.
authorRomain Forlot <romain.forlot@iot.bzh>
Mon, 13 Mar 2017 08:20:27 +0000 (09:20 +0100)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 16 Mar 2017 16:14:37 +0000 (17:14 +0100)
Change-Id: I61cca1117a987280383538a0b0e307429bee4fc3
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
src/diagnostic/diagnostic-message.cpp

index cb4e691..c9035eb 100644 (file)
@@ -68,6 +68,23 @@ void obd2_signal_t::set_prefix(std::string val)
        prefix_ = val;
 }
 
+/**
+ * @brief Build a DiagnosticRequest struct to be passed
+ *  to diagnostic manager instance.
+ */
+const DiagnosticRequest obd2_signal_t::build_diagnostic_request()
+{
+       return {/*arbitration_id: */OBD2_FUNCTIONAL_BROADCAST_ID,
+                       /*mode: */0x1,
+                       /*has_pid: */true,
+                       /*pid: */pid_,
+                       /*pid_length: */0,
+                       /*payload[]: */{0},
+                       /*payload_length: */0,
+                       /*no_frame_padding: */false,
+                       /*DiagnosticRequestType: */DiagnosticRequestType::DIAGNOSTIC_REQUEST_TYPE_PID };
+}
+
 bool obd2_signal_t::is_obd2_response(can_message_t can_message)
 {
        /*
@@ -112,23 +129,6 @@ bool obd2_signal_t::is_obd2_response(can_message_t can_message)
        return false;
 }      
 
-/**
- * @brief Build a DiagnosticRequest struct to be passed
- *  to diagnostic manager instance.
- */
-const DiagnosticRequest obd2_signal_t::build_diagnostic_request()
-{
-       return {/*arbitration_id: */OBD2_FUNCTIONAL_BROADCAST_ID,
-                       /*mode: */0x1,
-                       /*has_pid: */true,
-                       /*pid: */pid_,
-                       /*pid_length: */0,
-                       /*payload[]: */{0},
-                       /*payload_length: */0,
-                       /*no_frame_padding: */false,
-                       /*DiagnosticRequestType: */DiagnosticRequestType::DIAGNOSTIC_REQUEST_TYPE_PID };
-}
-
 /**
 * @brief Check if a request is an OBD-II PID request.
 *