1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00

Decide after reading ONE block

This commit is contained in:
Ross Wilson
2016-03-02 12:17:51 +07:00
parent 42fefa4704
commit 0fa749e306

View File

@@ -25,7 +25,7 @@ MemSize = 04000
LoaderSize = 0100
# True if debug code is active
Debug = True
Debug = False
def debug(msg):
@@ -247,6 +247,9 @@ def c8lds_handler(ptp_data, memory):
debug('c8lds: Bad checksum? Read %06o, expected %06o.' % (ptp_checksum, checksum))
return None
# only read one block
break
# no auto-start mechanism, so
return (None, None)
@@ -359,6 +362,9 @@ def lc16sd_handler(ptp_data, memory):
debug('lc16sd: Bad checksum, sum is %06o, expected 0?' % csum)
return None # bad block checksum
# only read one block
break
# if we return here there is no autostart
return (None, None)