aboutsummaryrefslogtreecommitdiffstats
path: root/low-can-binding/utils/socketcan-j1939.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'low-can-binding/utils/socketcan-j1939.cpp')
-rw-r--r--low-can-binding/utils/socketcan-j1939.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/low-can-binding/utils/socketcan-j1939.cpp b/low-can-binding/utils/socketcan-j1939.cpp
index 5f977f04..a7938d61 100644
--- a/low-can-binding/utils/socketcan-j1939.cpp
+++ b/low-can-binding/utils/socketcan-j1939.cpp
@@ -79,7 +79,8 @@ namespace utils
}
++filter_on;
}
- if(filter_on){
+ if(filter_on)
+ {
setopt(SOL_CAN_J1939, SO_J1939_FILTER, &filter, sizeof(filter));
}
}