From cf3bf7e576e9ed1377bc62a7ed8aea70aee3b107 Mon Sep 17 00:00:00 2001 From: BennyBot <48661356+BennyBot@users.noreply.github.com> Date: Thu, 10 Feb 2022 22:40:14 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9BUse=20Correct=20Linked=20Remote=20N?= =?UTF-8?q?ame=20for=20Upload=20(#199)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pros/serial/devices/vex/v5_device.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pros/serial/devices/vex/v5_device.py b/pros/serial/devices/vex/v5_device.py index 8a16ac73..c65861e5 100644 --- a/pros/serial/devices/vex/v5_device.py +++ b/pros/serial/devices/vex/v5_device.py @@ -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() @@ -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: