diff --git a/src/gba/remote.cpp b/src/gba/remote.cpp index 22ce8619..0d65b30c 100644 --- a/src/gba/remote.cpp +++ b/src/gba/remote.cpp @@ -3317,7 +3317,7 @@ void remoteWriteRegister(char *p) int i = 0; - while(c != '#') { + while(i < 4) { u8 b = 0; if(c <= '9') b = (c - '0') << 4;