Skip to content

Commit 47f943f

Browse files
Switch to python3 (#392)
1 parent aaf4247 commit 47f943f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

IntelBluetoothFirmware.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@
457457
);
458458
runOnlyForDeploymentPostprocessing = 0;
459459
shellPath = /bin/bash;
460-
shellScript = "#!/bin/bash\n\n# fw_gen.sh\n# IntelBluetoothFirmware\n#\n# Created by qcwap on 2020/2/26.\n# Copyright © 2020 钟先耀. All rights reserved.\n\ntarget_file=\"${PROJECT_DIR}\"/IntelBluetoothFirmware/FwBinary.cpp\nfw_files=\"${PROJECT_DIR}/IntelBluetoothFirmware/fw/\"\n\nrm -rf \"$target_file\"\n\nscript_file=\"${PROJECT_DIR}/scripts/\"\npython -c 'import sys;sys.path.append(\"'$script_file'\");import zlib_compress_fw;zlib_compress_fw.process_files(\"'${target_file}'\", \"'$fw_files'\")'\n";
460+
shellScript = "#!/bin/bash\n\n# fw_gen.sh\n# IntelBluetoothFirmware\n#\n# Created by qcwap on 2020/2/26.\n# Copyright © 2020 钟先耀. All rights reserved.\n\ntarget_file=\"${PROJECT_DIR}\"/IntelBluetoothFirmware/FwBinary.cpp\nfw_files=\"${PROJECT_DIR}/IntelBluetoothFirmware/fw/\"\n\nrm -rf \"$target_file\"\n\nscript_file=\"${PROJECT_DIR}/scripts/\"\npython3 -c 'import sys;sys.path.append(\"'$script_file'\");import zlib_compress_fw;zlib_compress_fw.process_files(\"'${target_file}'\", \"'$fw_files'\")'\n";
461461
};
462462
/* End PBXShellScriptBuildPhase section */
463463

IntelBluetoothFirmware/Hci.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ typedef struct __attribute__((packed))
119119
#define HCI_OP_PERIODIC_INQ 0x0403
120120
#define HCI_OP_EXIT_PERIODIC_INQ 0x0404
121121
#define HCI_OP_CREATE_CONN 0x0405
122-
#define HCI_OP_DISCONNECT 0x040
122+
#define HCI_OP_DISCONNECT 0x0406
123123
#define HCI_OP_ADD_SCO 0x0407
124124
#define HCI_OP_CREATE_CONN_CANCEL 0x0408
125125
#define HCI_OP_ACCEPT_CONN_REQ 0x0409

scripts/fw_gen.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ do
2121
done
2222

2323
script_file="${PROJECT_DIR}/scripts/"
24-
python -c 'import sys;sys.path.append("'$script_file'");from zlib_compress_fw import *;process_files("'${target_file}'", "'$fw_files'")'
24+
python3 -c 'import sys;sys.path.append("'$script_file'");from zlib_compress_fw import *;process_files("'${target_file}'", "'$fw_files'")'

scripts/zlib_compress_fw.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/python3
22
# -*- coding: utf-8 -*-
33
# zlib_compress_fw.py
44
#

0 commit comments

Comments
 (0)