diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-29 16:43:35 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2020-10-29 16:43:35 -0400 |
commit | 15ad69e0c6e35be34dc65322209d3673607d00c5 (patch) | |
tree | 79028f0757a1ba2e8314eb37265f91f11ca2e345 /engine/link | |
parent | ffdde1fa005764b7c3fa4a2d197b22235387a289 (diff) |
Define SERIAL_LINK_BYTE_TIMEOUT
Diffstat (limited to 'engine/link')
-rw-r--r-- | engine/link/link.asm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engine/link/link.asm b/engine/link/link.asm index 09aec60c..2d8d458b 100644 --- a/engine/link/link.asm +++ b/engine/link/link.asm @@ -26,9 +26,10 @@ LinkCommunications: ld de, String_PleaseWait call PlaceString ld hl, wLinkByteTimeout - xor a ; LOW($5000) + assert LOW(SERIAL_LINK_BYTE_TIMEOUT) == 0 + xor a ; LOW(SERIAL_LINK_BYTE_TIMEOUT) ld [hli], a - ld [hl], HIGH($5000) + ld [hl], HIGH(SERIAL_LINK_BYTE_TIMEOUT) ld a, [wLinkMode] cp LINK_TIMECAPSULE jp nz, Gen2ToGen2LinkComms |