Skip to content

Commit

Permalink
Fix #1: bug in set_memory function
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Dec 18, 2023
1 parent ac24327 commit fc0f539
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions uvk5_egzumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2109,9 +2109,8 @@ def set_memory(self, mem):
prev_0b = _mem.get_raw(asbytes=True)[0x0b] & SAVE_MASK_0B
prev_0c = _mem.get_raw(asbytes=True)[0x0c] & SAVE_MASK_0C
prev_0d = _mem.get_raw(asbytes=True)[0x0d] & SAVE_MASK_0D
_mem.set_raw(bytes("\x00" * 10 +
chr(prev_0a) + chr(prev_0b) + chr(prev_0c) +
chr(prev_0d) + chr(0) + chr(0), "utf-8"))
raw = bytes([0]*10 + [prev_0a, prev_0b, prev_0c, prev_0d, 0, 0])
_mem.set_raw(raw)

if number < 200:
_mem4.channel_attributes[number].is_scanlist1 = 0
Expand Down

0 comments on commit fc0f539

Please sign in to comment.