No noTone needed, but delay is
This commit is contained in:
		
							parent
							
								
									9c5d14ea68
								
							
						
					
					
						commit
						a932e7490f
					
				| @ -1544,11 +1544,10 @@ void lcd_buzz(long duration, uint16_t freq) { | ||||
|   if (freq > 0) { | ||||
|     #if BEEPER > 0 | ||||
|       SET_OUTPUT(BEEPER); | ||||
|       tone(BEEPER, freq); | ||||
|       tone(BEEPER, freq, duration); | ||||
|       delay(duration); | ||||
|       noTone(BEEPER); | ||||
|     #elif defined(LCD_USE_I2C_BUZZER) | ||||
|       lcd.buzz(duration,freq); | ||||
|       lcd.buzz(duration, freq); | ||||
|     #else | ||||
|       delay(duration); | ||||
|     #endif | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user