Avoid log message flood in Replicator 1 driver.

This commit is contained in:
Felipe Corrêa da Silva Sanches 2015-05-18 09:43:19 -03:00
parent 48aee7d615
commit 46258e0f52

View File

@ -1158,7 +1158,7 @@ void avr8_device::timer_tick(int cycles)
//TODO UINT8 int0[2] = { AVR8_INTIDX_OCF0A, AVR8_INTIDX_OCF0B }; //TODO UINT8 int0[2] = { AVR8_INTIDX_OCF0A, AVR8_INTIDX_OCF0B };
#define LOG_TIMER_0 0 #define LOG_TIMER_0 0
#define LOG_TIMER_5 1 #define LOG_TIMER_5 0
// Timer 0 Handling // Timer 0 Handling
void avr8_device::timer0_tick() void avr8_device::timer0_tick()
{ {
@ -1905,7 +1905,9 @@ void avr8_device::timer5_tick()
case WGM5_CTC_ICR: case WGM5_CTC_ICR:
case WGM5_FAST_PWM_ICR: case WGM5_FAST_PWM_ICR:
case WGM5_FAST_PWM_OCR: case WGM5_FAST_PWM_OCR:
printf("Unimplemented timer#5 waveform generation mode: WGMM5=0x%02X\n", AVR8_WGM5); #if LOG_TIMER_5
printf("Unimplemented timer#5 waveform generation mode: AVR8_WGM5 = 0x%02X\n", AVR8_WGM5);
#endif
break; break;
case WGM5_CTC_OCR: case WGM5_CTC_OCR: