Browse Source

-disalbe beeper if BEEPER_PIN = -1

pull/1/head
Christian Thalhammer 13 years ago
parent
commit
5edef148fe
  1. 6
      Marlin/ultralcd.pde

6
Marlin/ultralcd.pde

@ -130,6 +130,8 @@ void beep()
{ {
//return; //return;
#ifdef ULTIPANEL #ifdef ULTIPANEL
if (BEEPER > -1)
{
pinMode(BEEPER,OUTPUT); pinMode(BEEPER,OUTPUT);
for(int8_t i=0;i<20;i++){ for(int8_t i=0;i<20;i++){
WRITE(BEEPER,HIGH); WRITE(BEEPER,HIGH);
@ -137,6 +139,7 @@ void beep()
WRITE(BEEPER,LOW); WRITE(BEEPER,LOW);
delay(5); delay(5);
} }
}
#endif #endif
} }
@ -144,6 +147,8 @@ void beepshort()
{ {
//return; //return;
#ifdef ULTIPANEL #ifdef ULTIPANEL
if (BEEPER > -1)
{
pinMode(BEEPER,OUTPUT); pinMode(BEEPER,OUTPUT);
for(int8_t i=0;i<10;i++){ for(int8_t i=0;i<10;i++){
WRITE(BEEPER,HIGH); WRITE(BEEPER,HIGH);
@ -151,6 +156,7 @@ void beepshort()
WRITE(BEEPER,LOW); WRITE(BEEPER,LOW);
delay(3); delay(3);
} }
}
#endif #endif
} }

Loading…
Cancel
Save