Skip to content

Commit

Permalink
Silence buzzer on any main menu keypress
Browse files Browse the repository at this point in the history
  • Loading branch information
xnk committed Dec 11, 2014
1 parent 347503d commit ac7815c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ static int32_t Main_Work( void ) {
len = snprintf(buf,sizeof(buf),"OVEN TEMPERATURE %dC", Reflow_GetActualTemp());
LCD_disp_str((uint8_t*)buf, len, 64-(len*3), 64-6, FONT6X6);

if( keyspressed ) { // Make sure reflow complete beep is silenced when pressing any key
Buzzer_Beep( BUZZ_NONE, 0, 0 );
}

if(keyspressed & KEY_F1) { // About
mode=6;
retval = 0; // Force immediate refresh
Expand Down

0 comments on commit ac7815c

Please sign in to comment.