diff options
| author | PMR <pmr@pmr-lander> | 2020-12-08 19:21:02 +0000 |
|---|---|---|
| committer | PMR <pmr@pmr-lander> | 2020-12-08 19:21:02 +0000 |
| commit | 51d8b78d9ea9974a5aab7b63a055e2e2c09bfd24 (patch) | |
| tree | 67ca70f30f18c5540f3bec32bb5d91e79c687efd | |
| parent | 81cd789a83f92a0270583be7d41645fe92ead2a1 (diff) | |
| parent | 69ccdc56456a6c86b5cf1253eb7f7d752500ede9 (diff) | |
Merge #394952 from ~jocave/plainbox-provider-checkbox:fix-eff-flag-32
| -rwxr-xr-x | bin/socketcan_test.py | 3 |
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 |
