mirror of https://github.com/mgba-emu/mgba.git
GBA e-Reader: Increase scanning stability more
This commit is contained in:
parent
b3f5e6b9ee
commit
210c7a91cd
|
@ -16,8 +16,8 @@ CXX_GUARD_START
|
|||
|
||||
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)
|
||||
|
|
|
@ -572,7 +572,7 @@ void _eReaderWriteControl1(struct GBACartridgeHardware* hw, uint8_t value) {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue