From 9be79ddb64eb5aa9034ef9eee70a5df0431e815f Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Wed, 31 Mar 2021 22:18:41 -0700 Subject: [PATCH] GBA SIO: Silence initial mode switch --- src/gba/sio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gba/sio.c b/src/gba/sio.c index 84f4962ed..bf85f510f 100644 --- a/src/gba/sio.c +++ b/src/gba/sio.c @@ -60,7 +60,9 @@ static void _switchMode(struct GBASIO* sio) { if (sio->activeDriver && sio->activeDriver->unload) { sio->activeDriver->unload(sio->activeDriver); } - mLOG(GBA_SIO, DEBUG, "Switching mode from %s to %s", _modeName(sio->mode), _modeName(newMode)); + if (sio->mode != (enum GBASIOMode) -1) { + mLOG(GBA_SIO, DEBUG, "Switching mode from %s to %s", _modeName(sio->mode), _modeName(newMode)); + } sio->mode = newMode; sio->activeDriver = _lookupDriver(sio, sio->mode); if (sio->activeDriver && sio->activeDriver->load) {