瀏覽代碼

STM32F1: Remove extra py imports (#15898)

Tanguy Pruvot 5 年之前
父節點
當前提交
94e18ce324

+ 0
- 2
buildroot/share/PlatformIO/scripts/STM32F103VE_longer.py 查看文件

@@ -17,8 +17,6 @@ for i, flag in enumerate(env["LINKFLAGS"]):
17 17
 
18 18
 # Rename ${PROGNAME}.bin and save it as 'project.bin' (No encryption on the Longer3D)
19 19
 def encrypt(source, target, env):
20
-    import os
21
-
22 20
     firmware = open(target[0].path, "rb")
23 21
     marlin_alfa = open(target[0].dir.path +'/project.bin', "wb")
24 22
     length = os.path.getsize(target[0].path)

+ 0
- 2
buildroot/share/PlatformIO/scripts/chitu_crypt.py 查看文件

@@ -113,8 +113,6 @@ def encrypt_file(input, output_file, file_length):
113 113
 
114 114
 # Encrypt ${PROGNAME}.bin and save it as 'update.cbd'
115 115
 def encrypt(source, target, env):
116
-    import os
117
-
118 116
     firmware = open(target[0].path, "rb")
119 117
     update = open(target[0].dir.path +'/update.cbd', "wb")
120 118
     length = os.path.getsize(target[0].path)

+ 0
- 2
buildroot/share/PlatformIO/scripts/jgaurora_a5s_a1_with_bootloader.py 查看文件

@@ -16,8 +16,6 @@ for i, flag in enumerate(env["LINKFLAGS"]):
16 16
 
17 17
 #append ${PROGNAME}.bin firmware after bootloader and save it as 'jgaurora_firmware.bin'
18 18
 def addboot(source,target,env):
19
-	import os
20
-
21 19
 	firmware = open(target[0].path, "rb")
22 20
 	lengthfirmware = os.path.getsize(target[0].path)
23 21
 	bootloader_dir = "buildroot/share/PlatformIO/scripts/jgaurora_bootloader.bin"

+ 0
- 1
buildroot/share/PlatformIO/scripts/mks_robin.py 查看文件

@@ -16,7 +16,6 @@ for i, flag in enumerate(env["LINKFLAGS"]):
16 16
 
17 17
 # Encrypt ${PROGNAME}.bin and save it as 'Robin.bin'
18 18
 def encrypt(source, target, env):
19
-    import os
20 19
     import sys
21 20
 
22 21
     key = [0xA3, 0xBD, 0xAD, 0x0D, 0x41, 0x11, 0xBB, 0x8D, 0xDC, 0x80, 0x2D, 0xD0, 0xD2, 0xC4, 0x9B, 0x1E, 0x26, 0xEB, 0xE3, 0x33, 0x4A, 0x15, 0xE4, 0x0A, 0xB3, 0xB1, 0x3C, 0x93, 0xBB, 0xAF, 0xF7, 0x3E]

+ 0
- 1
buildroot/share/PlatformIO/scripts/mks_robin_lite.py 查看文件

@@ -17,7 +17,6 @@ for i, flag in enumerate(env["LINKFLAGS"]):
17 17
 
18 18
 # Encrypt ${PROGNAME}.bin and save it as 'mksLite.bin'
19 19
 def encrypt(source, target, env):
20
-    import os
21 20
     import sys
22 21
 
23 22
     key = [0xA3, 0xBD, 0xAD, 0x0D, 0x41, 0x11, 0xBB, 0x8D, 0xDC, 0x80, 0x2D, 0xD0, 0xD2, 0xC4, 0x9B, 0x1E, 0x26, 0xEB, 0xE3, 0x33, 0x4A, 0x15, 0xE4, 0x0A, 0xB3, 0xB1, 0x3C, 0x93, 0xBB, 0xAF, 0xF7, 0x3E]

+ 0
- 2
buildroot/share/PlatformIO/scripts/mks_robin_mini.py 查看文件

@@ -1,5 +1,4 @@
1 1
 import os
2
-
3 2
 Import("env")
4 3
 
5 4
 # Relocate firmware from 0x08000000 to 0x08007000
@@ -18,7 +17,6 @@ for i, flag in enumerate(env["LINKFLAGS"]):
18 17
 
19 18
 # Encrypt ${PROGNAME}.bin and save it as 'Robin_mini.bin'
20 19
 def encrypt(source, target, env):
21
-    import os
22 20
     import sys
23 21
 
24 22
     key = [0xA3, 0xBD, 0xAD, 0x0D, 0x41, 0x11, 0xBB, 0x8D, 0xDC, 0x80, 0x2D, 0xD0, 0xD2, 0xC4, 0x9B, 0x1E, 0x26, 0xEB, 0xE3, 0x33, 0x4A, 0x15, 0xE4, 0x0A, 0xB3, 0xB1, 0x3C, 0x93, 0xBB, 0xAF, 0xF7, 0x3E]

+ 0
- 1
buildroot/share/PlatformIO/scripts/mks_robin_nano.py 查看文件

@@ -17,7 +17,6 @@ for i, flag in enumerate(env["LINKFLAGS"]):
17 17
 
18 18
 # Encrypt ${PROGNAME}.bin and save it as 'Robin_nano.bin'
19 19
 def encrypt(source, target, env):
20
-    import os
21 20
     import sys
22 21
 
23 22
     key = [0xA3, 0xBD, 0xAD, 0x0D, 0x41, 0x11, 0xBB, 0x8D, 0xDC, 0x80, 0x2D, 0xD0, 0xD2, 0xC4, 0x9B, 0x1E, 0x26, 0xEB, 0xE3, 0x33, 0x4A, 0x15, 0xE4, 0x0A, 0xB3, 0xB1, 0x3C, 0x93, 0xBB, 0xAF, 0xF7, 0x3E]

Loading…
取消
儲存