avr8 : fix from Filipe (nw)

This commit is contained in:
Miodrag Milanovic 2014-01-03 11:44:30 +00:00
parent 0623cc4bf7
commit 488e073876
2 changed files with 3 additions and 3 deletions

View File

@ -1464,7 +1464,7 @@ void avr8_device::update_timer_waveform_gen_mode(UINT8 t, UINT8 mode)
break;
}
if (m_timer_top[t] == 0xFFFF){
if (m_timer_top[t] == -1){
m_timer_top[t] = 0;
printf("update_timer_waveform_gen_mode: Timer #%d - Unsupported waveform generation type: %d\n", t, mode);
}

View File

@ -162,8 +162,8 @@ protected:
UINT8 m_r[0x200];
// internal timers
UINT16 m_timer_top[6];
INT32 m_timer_increment[6];
INT32 m_timer_top[6];
UINT8 m_timer_increment[6];
UINT16 m_timer_prescale[6];
UINT16 m_timer_prescale_count[6];