 boolean m2armed = false;
 long lastM1 = 0;
 long lastM2 = 0;
+
+int eeAddressStart = 0;
 
 // Connect via i2c, default address #1 (nothing jumpered)
 Adafruit_LiquidCrystal lcd(0);

// include the library code:
#include "Wire.h"
#include "Adafruit_LiquidCrystal.h"

// set rotary encoder pins
#define ENC_RD	PIND	//encoder port read

    lcd.setCursor(0,1); 
    if(millis() - lastM2 > 500) {
    // long push = commit to memory
    EEPROM.put(eeAddressStart+sizeof(double),freq);
    lcd.print("m2 stored"); 
    } else {
    // short push = qsy to memory frequency
    EEPROM.get(eeAddressStart+sizeof(double),freq);
    lcd.print("recall m2");
    send_frequency(freq);     
    display_frequency(freq);
    }
    m2armed = false;
    lastM2 = millis();
