File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 15
15
env = DefaultEnvironment ()
16
16
platform = env .PioPlatform ()
17
17
board = env .BoardConfig ()
18
+ flasher_path = platform .get_package_dir ("tool-siwiflasher" ) or ""
18
19
19
20
env .Replace (
20
21
AR = "arm-none-eabi-ar" ,
39
40
# Setup tools based on system type
40
41
if "windows" in get_systype ():
41
42
env .Replace (
42
- SIWIFLASHER = join (platform . get_package_dir ( "tool-siwiflasher" ) or "" , "siwiflasher" ),
43
+ SIWIFLASHER = join (flasher_path , "siwiflasher" ),
43
44
REFLASH_FLAGS = [
44
45
"-r" ,
45
46
"-b" , "$UPLOAD_SPEED" ,
49
50
)
50
51
else :
51
52
env .Replace (
52
- SIWIFLASHER = '"$PYTHONEXE"' + join (platform .get_package_dir (
53
- "tool-pysiwiflasher" ) or "" , "siwiflasher.py" ),
54
- REFLASH_CMD = "echo Sorry! Reflashing is only supported on windows!"
53
+ SIWIFLASHER = '"$PYTHONEXE" ' + join (flasher_path , "siwiflasher.py" ),
54
+ REFLASH_CMD = 'echo "Sorry! Reflashing is only supported on windows! :("'
55
55
)
56
56
57
57
# Allow user to override via pre:script
You can’t perform that action at this time.
0 commit comments