 boolean blinkState = false;
 
 long lastStatus = 0;
+boolean statusDisplayed = false;
 
 boolean mem_armed[NUMBER_MEM_BUTTONS];
 long last_mem[NUMBER_MEM_BUTTONS];

      // long push = commit to memory
      EEPROM.put(eeAddressStart+buttons*sizeof(double),freq);
      strcpy(statusLine,"m");
      strcat(statusLine,"0" + buttons);
      strcat(statusLine," stored");
      update_status();
      } else {
      // short push = qsy to memory frequency
      EEPROM.get(eeAddressStart+buttons*sizeof(double),freq);
      lcd.print("recall m");
      lcd.print(buttons+1);
      send_frequency(freq);     
      display_frequency(freq);
      }

// subroutine to blank a display line
void clear_line(byte lineNumber) {
  lcd.noBlink();
  lcd.setCursor(0,lineNumber);
  for (int pos=0; pos < 20; pos++){
    lcd.print(" ");
  }
}
