diff options
Diffstat (limited to 'can_event_push.cpp')
-rw-r--r-- | can_event_push.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/can_event_push.cpp b/can_event_push.cpp index c8a3b6d..429abe4 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(); } } } |