Fixed BQ4847 to always return 0 for its register 15; required for proper chip detection.

This commit is contained in:
Michael Zapf 2020-09-28 13:09:06 +02:00
parent 4dc5e3fc62
commit a246155098

View File

@ -305,6 +305,8 @@ uint8_t bq4847_device::read(offs_t address)
set_register(reg_flags, 0xff, false); set_register(reg_flags, 0xff, false);
m_interrupt_cb(intrq_r()); m_interrupt_cb(intrq_r());
} }
else
if (regnum == reg_unused) value = 0; // Reg 15 is locked to 0 in BQ4847
LOGMASKED(LOG_REG, "Reg %d -> %02x\n", regnum, value); LOGMASKED(LOG_REG, "Reg %d -> %02x\n", regnum, value);