Skip to content
Snippets Groups Projects
Commit a33d0892 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Tweak LPC1768 upload py script

parent 15e6ee6c
No related branches found
No related tags found
No related merge requests found
...@@ -16,10 +16,11 @@ current_OS = platform.system() ...@@ -16,10 +16,11 @@ current_OS = platform.system()
Import("env") Import("env")
def print_error(e): def print_error(e):
print('\nUnable to find destination disk (' + e + ')\n' \ print('\nUnable to find destination disk (%s)\n' \
'Please select it in platformio.ini using the upload_port keyword ' \ 'Please select it in platformio.ini using the upload_port keyword ' \
'(https://docs.platformio.org/en/latest/projectconf/section_env_upload.html) ' \ '(https://docs.platformio.org/en/latest/projectconf/section_env_upload.html) ' \
'or copy the firmware (.pio/build/' + env.get('PIOENV') + '/firmware.bin) manually to the appropriate disk\n') 'or copy the firmware (.pio/build/%s/firmware.bin) manually to the appropriate disk\n' \
%(e, env.get('PIOENV')))
try: try:
if current_OS == 'Windows': if current_OS == 'Windows':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment