From 49251e50f29b23f8031a8a02da36115b7dd98aa3 Mon Sep 17 00:00:00 2001 From: Mateusz Faderewski Date: Sun, 23 Jan 2022 02:36:01 +0100 Subject: [PATCH] py spacing --- sw/pc/sc64.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sw/pc/sc64.py b/sw/pc/sc64.py index 802a920..9e5ebbf 100644 --- a/sw/pc/sc64.py +++ b/sw/pc/sc64.py @@ -541,6 +541,7 @@ class SC64: def __debug_process_fsd_read(self, data: bytes) -> None: sector = int.from_bytes(data[0:4], byteorder="little") offset = int.from_bytes(data[4:8], byteorder="little") + if (self.__fsd_file): self.__fsd_file.seek(sector * 512) self.__write_cmd("T", offset, 512) @@ -552,6 +553,7 @@ class SC64: def __debug_process_fsd_write(self, data: bytes) -> None: sector = int.from_bytes(data[0:4], byteorder="little") offset = int.from_bytes(data[4:8], byteorder="little") + if (self.__fsd_file): self.__fsd_file.seek(sector * 512) self.__write_cmd("F", offset, 512)