From 1468d600057eb3a67a3320364bff8259e054ba0a Mon Sep 17 00:00:00 2001 From: Vincent DEFERT <20.100@defert.com> Date: Thu, 1 Jun 2023 08:50:30 +0200 Subject: [PATCH] Minor corrections after review --- stcgal/frontend.py | 4 ---- stcgal/protocols.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/stcgal/frontend.py b/stcgal/frontend.py index f1b3d45..48c5f60 100644 --- a/stcgal/frontend.py +++ b/stcgal/frontend.py @@ -46,7 +46,6 @@ class StcGal: def __init__(self, opts): self.opts = opts self.hexFileType = 8 - self.linearBaseAddress = 0 self.initialize_protocol(opts) def initialize_protocol(self, opts): @@ -100,7 +99,6 @@ class StcGal: try: hexfile = IHex.read(fileobj) self.hexFileType = hexfile.get_mode() - self.linearBaseAddress = hexfile.get_linearBaseAddress() binary = hexfile.extract_data() print("%d bytes (Intel HEX)" %len(binary)) return binary @@ -132,8 +130,6 @@ class StcGal: print("base address, i.e. contain a type 04 record. More information at:", file=sys.stderr) print("https://en.wikipedia.org/wiki/Intel_HEX", file=sys.stderr) else: - self.protocol.linearBaseAddress = self.linearBaseAddress - # warn if it overflows if len(bindata) > code_size: print("WARNING: code_image overflows into eeprom segment!", file=sys.stderr) diff --git a/stcgal/protocols.py b/stcgal/protocols.py index 9bd12de..e9ba8f6 100644 --- a/stcgal/protocols.py +++ b/stcgal/protocols.py @@ -1911,7 +1911,7 @@ class Stc8dProtocol(Stc8Protocol): def set_option(self, name, value): super().set_option(name, value) - if name=='program_eeprom_split': + if name == 'program_eeprom_split': split_point = Utils.to_int(value); if self.model.mcs251: