diff options
-rw-r--r-- | CAN-binder/low-can-binding/binding/low-can-cb.cpp | 2 | ||||
-rw-r--r-- | CAN-binder/low-can-binding/can/can-bus.hpp | 2 | ||||
-rw-r--r-- | CAN-config-generator/etc/config.cmake | 4 |
3 files changed, 5 insertions, 3 deletions
diff --git a/CAN-binder/low-can-binding/binding/low-can-cb.cpp b/CAN-binder/low-can-binding/binding/low-can-cb.cpp index 071f107..ce829b9 100644 --- a/CAN-binder/low-can-binding/binding/low-can-cb.cpp +++ b/CAN-binder/low-can-binding/binding/low-can-cb.cpp @@ -208,6 +208,8 @@ static int subscribe_unsubscribe_diagnostic_messages(struct afb_req request, boo } else { + diag_m.cleanup_request( + diag_m.find_recurring_request(*diag_req), true); if(sig->get_supported()) {DEBUG(binder_interface, "%s: %s cancelled due to unsubscribe", __FUNCTION__, sig->get_name().c_str());} else diff --git a/CAN-binder/low-can-binding/can/can-bus.hpp b/CAN-binder/low-can-binding/can/can-bus.hpp index dd67ca8..99d5a30 100644 --- a/CAN-binder/low-can-binding/can/can-bus.hpp +++ b/CAN-binder/low-can-binding/can/can-bus.hpp @@ -29,7 +29,7 @@ #include "can-message.hpp" #include "../utils/config-parser.hpp" #include "../binding/low-can-hat.hpp" -#include "../binding/low-can-subscription.hpp" +#include "../binding/low-can-cb.hpp" // TODO actual max is 32 but dropped to 24 for memory considerations #define MAX_ACCEPTANCE_FILTERS 24 diff --git a/CAN-config-generator/etc/config.cmake b/CAN-config-generator/etc/config.cmake index 1819daa..50cb346 100644 --- a/CAN-config-generator/etc/config.cmake +++ b/CAN-config-generator/etc/config.cmake @@ -43,8 +43,8 @@ add_compile_options(-D_REENTRANT) add_compile_options(-DPB_FIELD_16BIT) # LANG Specific compile flags set for all build types -set(CMAKE_C_FLAGS "") -set(CMAKE_CXX_FLAGS "-std=c++11") +set(CMAKE_C_FLAGS "" CACHE STRING "C compile flags") +set(CMAKE_CXX_FLAGS "-std=c++11" CACHE STRING "C++ compile flags") # Print a helper message when every thing is finished setc(CLOSING_MESSAGE "Test with: ./can-config-generator -m ../tests/basic.json -o configuration-generated.cpp") |