VBLANK based watchdogs can be disabled once again

Removed debugging fprintf
This commit is contained in:
Zsolt Vasvari 2008-03-05 04:20:01 +00:00
parent 0eca6ca59c
commit 793cf2e715
2 changed files with 1 additions and 2 deletions

View File

@ -296,7 +296,6 @@ void debug_cpu_init(running_machine *machine)
}
/* add callback for breaking on VBLANK */
fprintf(stderr,"Debug 1\n");
video_screen_register_vbl_cb(machine, NULL, on_vblank);
add_exit_callback(machine, debug_cpu_exit);

View File

@ -86,7 +86,7 @@ static TIMER_CALLBACK( watchdog_callback )
static void on_vblank(running_machine *machine, screen_state *screen, int vblank_state)
{
/* VBLANK starting */
if (vblank_state)
if (vblank_state && watchdog_enabled)
{
/* check the watchdog */
if (machine->config->watchdog_vblank_count != 0 && --watchdog_counter == 0)