diff options
author | Arthur GUYADER <arthur.guyader@iot.bzh> | 2019-12-12 15:26:59 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2020-01-09 16:25:36 +0100 |
commit | c57722b34d38c9843a728829204d2711aaadacbb (patch) | |
tree | 9bc32030d40980a1cad1203505d24278a7154719 /low-can-binding/utils/socketcan-j1939/socketcan-j1939.hpp | |
parent | 707dff688bbd411974f472a3bdc3ad2faafbd3bd (diff) |
socket-j1939: Function add_filter return int to check error
Change-Id: Ia79320108e8293d2b7a5beba4f49036999d5ebbb
Signed-off-by: Arthur GUYADER <arthur.guyader@iot.bzh>
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'low-can-binding/utils/socketcan-j1939/socketcan-j1939.hpp')
-rw-r--r-- | low-can-binding/utils/socketcan-j1939/socketcan-j1939.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/low-can-binding/utils/socketcan-j1939/socketcan-j1939.hpp b/low-can-binding/utils/socketcan-j1939/socketcan-j1939.hpp index f9132972..1ae8d1c9 100644 --- a/low-can-binding/utils/socketcan-j1939/socketcan-j1939.hpp +++ b/low-can-binding/utils/socketcan-j1939/socketcan-j1939.hpp @@ -60,7 +60,7 @@ namespace utils static std::mutex mutex_claiming_; static std::condition_variable signal_address_claiming_; void define_tx_address(std::string device_name, name_t name, pgn_t pgn, uint8_t addr); - void add_filter(name_t name, pgn_t pgn, uint8_t addr, name_t name_mask, pgn_t pgn_mask, uint8_t addr_mask); + int add_filter(name_t name, pgn_t pgn, uint8_t addr, name_t name_mask, pgn_t pgn_mask, uint8_t addr_mask); void define_opt(bool promisc = true, bool recv_own_msgs = true, bool broadcast = true); }; |