summaryrefslogtreecommitdiffstats
path: root/src/can-utils.hpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-02-21 07:42:46 +0000
committerRomain Forlot <romain.forlot@iot.bzh>2017-02-21 11:00:03 +0000
commitef610b379f59f89350f6f9dd8ff11a00066e2c05 (patch)
treecadab1177137db9b0f0f1c5f35f9281a83266ec0 /src/can-utils.hpp
parentcba9b59fab054d3a33a4d58ed227fc3d4b6f6d9d (diff)
Handle error in returning a vector by returning
an empty vector. Fix: typo Change-Id: Ibe859d3e67f6eea96b50e04cd230657be56a18c6 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can-utils.hpp')
-rw-r--r--src/can-utils.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/can-utils.hpp b/src/can-utils.hpp
index ee87790..d1310a6 100644
--- a/src/can-utils.hpp
+++ b/src/can-utils.hpp
@@ -50,13 +50,6 @@ extern "C"
#define CAN_ACTIVE_TIMEOUT_S 30
/**
- * @brief Function representing thread activated by can bus objects
- */
-void can_reader(can_bus_dev_t& can_bus);
-void can_decode_message(can_bus_t& can_bus);
-void can_event_push(can_bus_t& can_bus);
-
-/**
* @brief The type signature for a CAN signal decoder.
*
* @desc A SignalDecoder transforms a raw floating point CAN signal into a number,
@@ -399,3 +392,10 @@ bool isBusActive(can_bus_dev_t* bus);
* busCount - the length of the buses array.
*/
void logBusStatistics(can_bus_dev_t* buses, const int busCount);
+
+/**
+ * @brief Function representing thread activated by can bus objects
+ */
+void can_reader(can_bus_dev_t& can_bus);
+void can_decode_message(can_bus_t& can_bus);
+void can_event_push(can_bus_t& can_bus); \ No newline at end of file