Updated SERIAL define to MYSERIAL, because Arduino 1.0 defines SERIAL as 0.

This commit is contained in:
daid
2012-02-11 16:02:47 +01:00
parent d47a3e5950
commit 2a77c84c8f
5 changed files with 35 additions and 35 deletions

View File

@ -254,7 +254,7 @@ FORCE_INLINE unsigned short calc_timer(unsigned short step_rate) {
timer = (unsigned short)pgm_read_word_near(table_address);
timer -= (((unsigned short)pgm_read_word_near(table_address+2) * (unsigned char)(step_rate & 0x0007))>>3);
}
if(timer < 100) { timer = 100; SERIAL.print("Steprate to high : "); SERIAL.println(step_rate); }//(20kHz this should never happen)
if(timer < 100) { timer = 100; MYSERIAL.print("Steprate to high : "); MYSERIAL.println(step_rate); }//(20kHz this should never happen)
return timer;
}