GBA SIO: Fix RCNT mode selection
Jeffrey Pfau jeffrey@endrift.com
Mon, 02 Mar 2015 01:20:12 -0800
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
src/gba/sio.c
→
src/gba/sio.c
@@ -36,11 +36,11 @@ sio->mode = (enum GBASIOMode) (mode & 0x3);
} else { sio->mode = (enum GBASIOMode) (mode & 0xC); } - if (oldMode != mode) { + if (oldMode != sio->mode) { if (sio->activeDriver && sio->activeDriver->unload) { sio->activeDriver->unload(sio->activeDriver); } - sio->activeDriver = _lookupDriver(sio, mode); + sio->activeDriver = _lookupDriver(sio, sio->mode); if (sio->activeDriver && sio->activeDriver->load) { sio->activeDriver->load(sio->activeDriver); }