Skip to content

Commit

Permalink
🐛Use Correct Linked Remote Name for Upload (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyBot authored Feb 11, 2022
1 parent 9dc113c commit cf3bf7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pros/serial/devices/vex/v5_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def write_program(self, file: typing.BinaryIO, remote_name: str = None, ini: Con
remote_base = f'slot_{slot + 1}'
if target == 'ddr':
self.write_file(file, f'{remote_base}.bin', file_len=file_len, type='bin',
target='ddr', run_after=run_after, linked_filename=remote_name, **kwargs)
target='ddr', run_after=run_after, linked_filename=linked_remote_name, **kwargs)
return
if not isinstance(ini, ConfigParser):
ini = ConfigParser()
Expand All @@ -322,7 +322,7 @@ def write_program(self, file: typing.BinaryIO, remote_name: str = None, ini: Con
logger(__name__).info(f'Created ini: {ini_file}')

if linked_file is not None:
self.upload_library(linked_file, remote_name=remote_name, addr=linked_file_addr,
self.upload_library(linked_file, remote_name=linked_remote_name, addr=linked_file_addr,
compress=compress_bin, force_upload=kwargs.pop('force_upload_linked', False))
bin_kwargs = {k: v for k, v in kwargs.items() if v in ['addr']}
if (quirk & 0xff) == 1:
Expand Down

0 comments on commit cf3bf7e

Please sign in to comment.