From 15021047d8ad078cf850997a2396531459d49353 Mon Sep 17 00:00:00 2001 From: Mikaela Szekely Date: Sat, 30 Jun 2018 07:53:02 -0600 Subject: [PATCH] Fix #20: Typo that still actually worked `switch_to_highbuf()` mistakenly refers to `switch` instead of `self`. Though, it doesn't actually matter since in this particular script they're the same object. --- fusee-launcher.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fusee-launcher.py b/fusee-launcher.py index 5e96d10..21bf23e 100755 --- a/fusee-launcher.py +++ b/fusee-launcher.py @@ -546,8 +546,8 @@ class RCMHax: def switch_to_highbuf(self): """ Switches to the higher RCM buffer, reducing the amount that needs to be copied. """ - if switch.get_current_buffer_address() != self.COPY_BUFFER_ADDRESSES[1]: - switch.write(b'\0' * 0x1000) + if self.get_current_buffer_address() != self.COPY_BUFFER_ADDRESSES[1]: + self.write(b'\0' * 0x1000) def trigger_controlled_memcpy(self, length=None):