From 8f3b06ffa9c044fdaf256e2bb485f0ecf7605644 Mon Sep 17 00:00:00 2001 From: hap Date: Sun, 6 Jan 2019 22:16:12 +0100 Subject: [PATCH] capbowl: can't multiply attotime with float (nw) --- src/mame/drivers/capbowl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mame/drivers/capbowl.cpp b/src/mame/drivers/capbowl.cpp index fec21ecd991..5628573257c 100644 --- a/src/mame/drivers/capbowl.cpp +++ b/src/mame/drivers/capbowl.cpp @@ -323,7 +323,9 @@ MACHINE_CONFIG_START(capbowl_state::capbowl) MCFG_DEVICE_PROGRAM_MAP(capbowl_map) MCFG_DEVICE_VBLANK_INT_DRIVER("screen", capbowl_state, interrupt) - WATCHDOG_TIMER(config, m_watchdog).set_time(PERIOD_OF_555_ASTABLE(100000.0, 100000.0, 0.1e-6) * 15.5); // ~0.3s + // watchdog: 555 timer 16 cycles, edge triggered, ~0.3s + attotime period = PERIOD_OF_555_ASTABLE(100000.0, 100000.0, 0.1e-6); + WATCHDOG_TIMER(config, m_watchdog).set_time(period * 16 - period / 2); MCFG_DEVICE_ADD("audiocpu", MC6809E, MASTER_CLOCK / 4) // MC68B09EP MCFG_DEVICE_PROGRAM_MAP(sound_map)