From 8bde0ccfb27b894c9b176a885f78b85a7104b114 Mon Sep 17 00:00:00 2001 From: Polprzewodnikowy Date: Sun, 23 Jan 2022 19:57:36 +0100 Subject: [PATCH] fixxx --- sw/pc/sc64.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sw/pc/sc64.py b/sw/pc/sc64.py index 8354b9d..6d47130 100644 --- a/sw/pc/sc64.py +++ b/sw/pc/sc64.py @@ -776,11 +776,6 @@ if __name__ == "__main__": firmware_backup_file = "sc64firmware.bin.bak" with SC64ProgressBar(sc64): - if (rtc): - now = datetime.now() - print(f"Setting RTC to [{now}]") - sc64.set_rtc(now) - if (update_file): if (is_read): sc64.backup_firmware(update_file) @@ -793,6 +788,11 @@ if __name__ == "__main__": print("SummerCart64 is already updated to latest version") os.remove(firmware_backup_file) + if (rtc): + now = datetime.now() + print(f"Setting RTC to [{now}]") + sc64.set_rtc(now) + if (not is_read): if (boot_mode != 2): print(f"Setting boot mode to [{sc64.get_boot_mode_label(boot_mode)}]")