summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2020-12-08 19:21:02 +0000
committerPMR <pmr@pmr-lander>2020-12-08 19:21:02 +0000
commit51d8b78d9ea9974a5aab7b63a055e2e2c09bfd24 (patch)
tree67ca70f30f18c5540f3bec32bb5d91e79c687efd
parent81cd789a83f92a0270583be7d41645fe92ead2a1 (diff)
parent69ccdc56456a6c86b5cf1253eb7f7d752500ede9 (diff)
Merge #394952 from ~jocave/plainbox-provider-checkbox:fix-eff-flag-32
-rwxr-xr-xbin/socketcan_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/socketcan_test.py b/bin/socketcan_test.py
index 25c79b2..5468b3a 100755
--- a/bin/socketcan_test.py
+++ b/bin/socketcan_test.py
@@ -18,6 +18,7 @@
# along with Checkbox. If not, see <http://www.gnu.org/licenses/>.
import argparse
+import ctypes
import os
import socket
import struct
@@ -112,7 +113,7 @@ def echo_test(args):
id_flags = 0
if args.effid:
print('Setting EFF CAN ID flag')
- id_flags = socket.CAN_EFF_FLAG
+ id_flags = ctypes.c_ulong(socket.CAN_EFF_FLAG).value
# Whether to enable local loopback, required for local only test
# but only want to parse packets from other end if remote