summaryrefslogtreecommitdiffstats
path: root/can_event_push.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-02-11 19:58:04 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-02-13 23:31:56 +0000
commit97bf55de6cd4fb832f98a670a5ac37ffb0a78b8a (patch)
tree5c81d1eb84843367504b4438eb51dd118fbc1b33 /can_event_push.cpp
parentcba316f0aa72b3de846814495671df6ecb226028 (diff)
Fix wrong arguments type
Reader is almost finish i think now Change-Id: Ib4c7c88b430ada2661e6ce2a67dde76d03dba2f1 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'can_event_push.cpp')
-rw-r--r--can_event_push.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/can_event_push.cpp b/can_event_push.cpp
index c8a3b6da..429abe48 100644
--- a/can_event_push.cpp
+++ b/can_event_push.cpp
@@ -22,14 +22,17 @@
#include <afb/afb-binding.h>
-void can_event_push(afb_binding_interface *interface, std::queue <openxc_can_message_type>& can_message_queue)
+#include "can-utils.h"
+#include "openxc.pb.h"
+
+void can_event_push(afb_binding_interface *interface, std::queue <openxc_VehicleMessage>& vehicle_message_q)
{
while(true)
{
- if(! can_message_queue.empty())
+ if(! vehicle_message_q.empty())
{
- can_message = can_message_queue.front();
- can_message_queue.pop();
+ vehicle_message = vehicle_message_q.front();
+ vehicle_message_q.pop();
}
}
}