diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-22 11:44:27 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-02-22 12:15:13 +0100 |
commit | 747d58ad84d230f6cf11ac818bab65019df83611 (patch) | |
tree | a7a6f84cac521fd181b8aec490260fda676f08cc /src/can_event_push.cpp | |
parent | cfd941effb1b2183f6d3f693496aadd45762523f (diff) |
No more warning about not defined functions
because of wrong header files inclusion.
Some variables are now accessible using functions
rather than using global variables that can not
be accessed through separated files.
Also fix timer returning function type.
Change-Id: I36138ff671c2537f595235273abaa34783be18e1
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can_event_push.cpp')
-rw-r--r-- | src/can_event_push.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/can_event_push.cpp b/src/can_event_push.cpp index 07ae8d3c..703a242c 100644 --- a/src/can_event_push.cpp +++ b/src/can_event_push.cpp @@ -27,6 +27,7 @@ void can_event_push(can_bus_t& can_bus) { v_message = can_bus.next_vehicle_message(); s_message = get_simple_message(v_message); + std::map<std::string, struct afb_event> subscribed_signals = get_subscribed_signals(); const auto& it_event = subscribed_signals.find(s_message.name); if(it_event != subscribed_signals.end() && afb_event_is_valid(it_event->second)) afb_event_push(it_event->second, jsonify_simple(s_message)); |