summaryrefslogtreecommitdiffstats
path: root/src/diagnostic/diagnostic-message.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-15 23:31:23 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-16 17:21:57 +0100
commit6e4b2f9c0bcdfb3106d9f3b5bdb9316fcdebd9b2 (patch)
tree7c1e4cd0fcc6bd56683b645e7a4e0c8b770201c9 /src/diagnostic/diagnostic-message.hpp
parent7175a87b640b9920e666bce53f46002ac19d4c21 (diff)
Small fixes
Align frequency type to float and removed useless code. Change-Id: I13d9407808c42ece0d3fd761351752ad661e01e0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/diagnostic/diagnostic-message.hpp')
-rw-r--r--src/diagnostic/diagnostic-message.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/diagnostic/diagnostic-message.hpp b/src/diagnostic/diagnostic-message.hpp
index 83c4dcc..4feceb4 100644
--- a/src/diagnostic/diagnostic-message.hpp
+++ b/src/diagnostic/diagnostic-message.hpp
@@ -22,6 +22,7 @@
#include "uds/uds.h"
#include "../can/can-bus.hpp"
#include "../can/can-message.hpp"
+#include "active-diagnostic-request.hpp"
#include "../low-can-binding.hpp"
@@ -49,7 +50,7 @@ class diagnostic_message_t {
int min_; /*!< min_ - Minimum value that can take this pid */
int max_; /*!< max_ - Maximum value that can take this pid */
enum UNIT unit_; /*!< unit_ : Which unit system is used by that pid. See enum UNIT above.*/
- int frequency_; /*!< frequency - The frequency to request this PID if supported by the vehicle when automatic, recurring OBD-II requests are enabled.*/
+ float frequency_; /*!< frequency - The frequency to request this PID if supported by the vehicle when automatic, recurring OBD-II requests are enabled.*/
DiagnosticResponseDecoder decoder_; /*!< decoder_ - An optional DiagnosticResponseDecoder to parse the payload of responses
* to this request. If the decoder is NULL, the output will include the raw payload
* instead of a parsed value.*/
@@ -66,7 +67,7 @@ class diagnostic_message_t {
uint32_t get_pid();
const std::string& get_generic_name() const;
const std::string get_name() const;
- int get_frequency() const;
+ float get_frequency() const;
DiagnosticResponseDecoder get_decoder() const;
DiagnosticResponseCallback get_callback() const;
@@ -74,5 +75,4 @@ class diagnostic_message_t {
bool is_obd2_response(const can_message_t& can_message);
bool is_obd2_request(const DiagnosticRequest *request);
-
};