GBA e-Reader: Increase scanning stability more
Vicki Pfau vi@endrift.com
Sun, 23 Feb 2020 18:01:53 -0800
2 files changed,
3 insertions(+),
3 deletions(-)
M
include/mgba/internal/gba/hardware.h
→
include/mgba/internal/gba/hardware.h
@@ -16,8 +16,8 @@ #include <mgba/gba/interface.h>
mLOG_DECLARE_CATEGORY(GBA_HW); -#define EREADER_DOTCODE_STRIDE 1200 -#define EREADER_DOTCODE_SIZE (EREADER_DOTCODE_STRIDE * 40 + 200) +#define EREADER_DOTCODE_STRIDE 1420 +#define EREADER_DOTCODE_SIZE (EREADER_DOTCODE_STRIDE * 40) #define EREADER_CARDS_MAX 16 #define IS_GPIO_REGISTER(reg) ((reg) == GPIO_REG_DATA || (reg) == GPIO_REG_DIRECTION || (reg) == GPIO_REG_CONTROL)
M
src/gba/ereader.c
→
src/gba/ereader.c
@@ -572,7 +572,7 @@ ++hw->eReaderY;
if (hw->eReaderY == (hw->eReaderSerial[0x15] | (hw->eReaderSerial[0x14] << 8))) { hw->eReaderY = 0; if (hw->eReaderX < 3400) { - hw->eReaderX += 220; + hw->eReaderX += 210; } } _eReaderReadData(hw);