From f0da82fa2b18e126279098a188ad9b087695ac66 Mon Sep 17 00:00:00 2001 From: OBattler Date: Mon, 7 Jun 2021 00:12:53 +0200 Subject: [PATCH] The LG Prime3C no longer calls the IDE handler on register write if it is the variant without IDE. --- src/sio/sio_prime3c.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sio/sio_prime3c.c b/src/sio/sio_prime3c.c index b18e274fa..2d2d0435e 100644 --- a/src/sio/sio_prime3c.c +++ b/src/sio/sio_prime3c.c @@ -127,7 +127,8 @@ prime3c_write(uint16_t addr, uint8_t val, void *priv) case 0xc5: IDE_SIDE_ADDRESS = (val & 0xfc) | 0x02; - prime3c_ide_handler(dev); + if (HAS_IDE_FUNCTIONALITY) + prime3c_ide_handler(dev); break; case 0xc6: