|
|
|
@ -1446,16 +1446,20 @@ void process_commands()
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
#if defined(LARGE_FLASH) && LARGE_FLASH == true && defined(BEEPER) && BEEPER > -1
|
|
|
|
|
#if defined(LARGE_FLASH) && LARGE_FLASH == true
|
|
|
|
|
case 300: // M300
|
|
|
|
|
{
|
|
|
|
|
int beepS = 1;
|
|
|
|
|
int beepS = 400;
|
|
|
|
|
int beepP = 1000;
|
|
|
|
|
if(code_seen('S')) beepS = code_value();
|
|
|
|
|
if(code_seen('P')) beepP = code_value();
|
|
|
|
|
tone(BEEPER, beepS);
|
|
|
|
|
delay(beepP);
|
|
|
|
|
noTone(BEEPER);
|
|
|
|
|
#if defined(BEEPER) && BEEPER > -1
|
|
|
|
|
tone(BEEPER, beepS);
|
|
|
|
|
delay(beepP);
|
|
|
|
|
noTone(BEEPER);
|
|
|
|
|
#elif defined(ULTRALCD)
|
|
|
|
|
lcd_buzz(beepS, beepP);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
#endif // M300
|
|
|
|
@ -1672,17 +1676,19 @@ void process_commands()
|
|
|
|
|
manage_inactivity();
|
|
|
|
|
lcd_update();
|
|
|
|
|
|
|
|
|
|
#if BEEPER > -1
|
|
|
|
|
if(cnt==0)
|
|
|
|
|
{
|
|
|
|
|
#if defined(BEEPER) && BEEPER > -1
|
|
|
|
|
SET_OUTPUT(BEEPER);
|
|
|
|
|
|
|
|
|
|
WRITE(BEEPER,HIGH);
|
|
|
|
|
delay(3);
|
|
|
|
|
WRITE(BEEPER,LOW);
|
|
|
|
|
delay(3);
|
|
|
|
|
}
|
|
|
|
|
#else
|
|
|
|
|
lcd_buzz(1000/6,100);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//return to normal
|
|
|
|
|